我该如何卸载google-cloud-sdk? [英] How can I uninstall google-cloud-sdk ?

查看:734
本文介绍了我该如何卸载google-cloud-sdk?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试从macbook中删除Google Cloud AppEngine SDK,但我得到了这个

 上次登录:星期四8月11 14 :12:18在ttys002 
-bash:/Users/Squirrel/Desktop/google-cloud-sdk/path.bash.inc:没有这样的文件或目录
-bash:/ Users / Squirrel / Desktop /google-cloud-sdk/completion.bash.inc:没有这样的文件或目录

每当我打开一个新的终端窗口。有没有办法阻止这种情况发生?

解决方案

将评论转换为anwer ...



SDK安装可能会修改系统或用户配置文件,以包含适当的SDK环境设置。

首先要检查的是,如果用户在卸载后没有从系统注销,那么错误不仅仅是当前用户会话的副作用,已经拿起了SDK环境。注销并返回应注意此类情况。



如果在注销/ in后仍然存在错误消息,则表示安装的移除未清理系统或在SDK安装时修改用户配置文件,需要手动清理。



在您的情况下,错误来自 bash ,所以要检查的文件是 / etc / bash * 〜/ .bash * - 寻找 / Users / Squirrel / Desktop / google-cloud-sdk - 邮件中提到的现在删除的SDK安装路径。


I tried deleted Google Cloud AppEngine SDK from macbook, but I'm getting this

Last login: Thu Aug 11 14:12:18 on ttys002
-bash: /Users/Squirrel/Desktop/google-cloud-sdk/path.bash.inc: No such file or directory
-bash: /Users/Squirrel/Desktop/google-cloud-sdk/completion.bash.inc: No such file or directory 

Whenever I open a new terminal window. Is there a way I can stop that from happening?

解决方案

Converting the comment to an anwer...

Some SDK installations may modify system or user profiles to include proper setup of the SDK environment.

First thing to check, if the user didn't log out from the system since the uninstall, is if the errors are not just side effects of the current user session which already picked up the SDK environment. Logging out and back in should take care of such cases.

If the errors messages persist after logging out/in indicates that the removal of the installation did not clean up the system or user profiles modified at SDK installation, manual cleanup being required.

In your case the errors come from bash, so the files to check are either /etc/bash* or ~/.bash* - look for /Users/Squirrel/Desktop/google-cloud-sdk - the now-removed SDK installation path mentioned in the messages.

这篇关于我该如何卸载google-cloud-sdk?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆