gana2188 / google-cloud-sdk

Automatically exported from code.google.com/p/google-cloud-sdk
0 stars 0 forks source link

Failed installation on mac + oh-my-zsh #70

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
* Install google-cloud-sdk using `curl https://sdk.cloud.google.com | bash`
* Select Python and PHP.
* Enter path to an rc file to update, or leave blank to use:  ~/.zshrc
* Modify profile to update your $PATH? : Y

What is the expected output? What do you see instead?
typing `gcloud` after opening a new terminal should start google cloud sdk. I 
have a `/Users/username/google-cloud-sdk/completion.bash.inc:9: command not 
found: complete`

What is the output of 'gcloud info'?
Google Cloud SDK 0.9.32

app-engine-python 1.9.10
app-engine-python-extras 1.9.6
bq 2.0.18
bq-nix 2.0.18
compute 2014.09.10
core 2014.09.10
core-nix 2014.09.10
dns 2014.09.02
gae-python 2014.05.06
gae-python-launcher-mac 1.9.10
gcutil 1.16.5
gcutil-nix 1.16.5
gsutil 4.6
gsutil-nix 4.6
sql 2014.09.02

Please provide any additional information below.
after search google for answer, some one point that there is a zsh path config 
file in cloud sdk. The solution is to replace bash to zsh

# The next line updates PATH for the Google Cloud SDK.
source '/Users/Alpha/google-cloud-sdk/path.zsh.inc'

# The next line enables bash completion for gcloud.
source '/Users/Alpha/google-cloud-sdk/completion.zsh.inc'

The perfect solution would be cloud sdk installer recongize the zsh and add 
right path by itself. Now it just add bash path whatever bash or zsh.

Original issue reported on code.google.com by imst...@gmail.com on 19 Sep 2014 at 2:30

GoogleCodeExporter commented 9 years ago
As you discovered, if you're using zsh, you have to do this step manually. We 
figured zsh users are power users, but I'll leave this open in case we start to 
add more involved support for non-bash shells.

Original comment by jasm...@google.com on 19 Sep 2014 at 2:03

GoogleCodeExporter commented 9 years ago

Original comment by rdayal@google.com on 10 Nov 2014 at 4:37