这里是个新手,我正在尝试按照此处的指南安装 GC SDK
https://developers.google.com/compute/docs/gcutil/ https://developers.google.com/compute/docs/gcutil/
Do you want to update your system path to include the Google Cloud SDK
(Y/n)? y
Enter path to a file to append the PATH update to, or leave blank to
use /Users/lawrencetaur/.bash_profile:
Do you want to enable command-line completion? (Y/n)? y
Traceback (most recent call last):
File "/Users/lawrencetaur/google-cloud-sdk/bin/bootstrapping/install.py", line 293, in <module>
bin_path=bootstrapping.BIN_DIR,
File "/Users/lawrencetaur/google-cloud-sdk/bin/bootstrapping/install.py", line 213, in UpdatePath
with open(rc_path, 'w') as rc_file:
IOError: [Errno 13] Permission denied: '/Users/lawrencetaur/.bash_profile'
我想要的只是像 debian 实例一样使用它https://developers.google.com/compute/docs/quickstart#servewebpages https://developers.google.com/compute/docs/quickstart#servewebpages
我想在这里补充一下我自己的经验,仅供参考。我在用着ZSH
and iTerm2
.
对于我来说,当安装提示时
"Enter path to an rc file to update, or leave blank to use: [/users/xxxx/.bash_profile]"
.
我输入“~/.zshrc”,因为我正在使用ZSH
.
the .zshrc
文件实际上已被修改,但修改方式错误。安装应将它们添加到 rc 文件中:
# The next line updates PATH for the Google Cloud SDK.
source '/Users/ianchz/~/users/ianchz/svn_repos/google-cloud-sdk/path.bash.inc'
# The next line enables bash completion for gcloud.
source '/Users/ianchz/~/users/ianchz/svn_repos/google-cloud-sdk/completion.bash.inc'
如果您使用 zsh,实际上应该是这样的:
# The next line updates PATH for the Google Cloud SDK.
source '/Users/ianchz/~/users/ianchz/svn_repos/google-cloud-sdk/path.zsh.inc'
# The next line enables bash completion for gcloud.
source '/Users/ianchz/~/users/ianchz/svn_repos/google-cloud-sdk/completion.zsh.inc'
由于某种原因它没有取代bash
with zsh
。我在我的~/.zshrc
它起作用了。这样你就不会失去自动完成功能gcloud
命令。
希望这可以帮助。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)