gana2188 / google-cloud-sdk

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

Failed installation on mac + zsh #33

Closed GoogleCodeExporter closed 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 `command not found: gcloud`

What is the output of 'gcloud version'?
Google Cloud SDK 0.9.23

bq 2.0.18
bq-nix 2.0.18
core 2014.04.30
core-nix 2014.04.24
dns 2014.04.30
gae-python 1.9.4
gae-python-launcher-mac 1.9.4
gcutil 1.15.0
gcutil-nix 1.15.0
gsutil 3.42
gsutil-nix 3.42
sql 2014.04.30

Please provide any additional information below.

Adding `export PATH="/Users/steren/google-cloud-sdk/bin:$PATH"` to .zshrc fixes 
the issue.
It seems that `source /Users/steren/google-cloud-sdk/path.bash.inc` is not 
performing its work.

Original issue reported on code.google.com by steren.g...@gmail.com on 7 May 2014 at 1:33

GoogleCodeExporter commented 9 years ago
Looks like we need a separate path.zsh.inc, thanks.

Original comment by jasm...@google.com on 16 May 2014 at 4:55

GoogleCodeExporter commented 9 years ago
it works, just for some reason, even if you set the rc file path to ~/.zshrc, 
the installation still wrote:

# 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'

which really should be:

# 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'

go to ~/.zshrc change the "bash" to "zsh" should fix the issue if you are using 
zsh.

worked for me, using iTerm2 and zsh.

Original comment by ian.z...@sadasystems.com on 30 Jun 2014 at 11:21

GoogleCodeExporter commented 9 years ago
I just followed the same steps as #2 and everything is working.

Looks like the solution would be to detect the current running environment and 
update the prefix accordingly.

Original comment by matt.t.g...@gmail.com on 17 Dec 2014 at 10:13

GoogleCodeExporter commented 9 years ago
Hi, I'm trying to install but after restarting terminal I am getting a command 
not found when I try and take the next step to login. 

Original comment by jonathan...@gmail.com on 9 Mar 2015 at 6:26

GoogleCodeExporter commented 9 years ago
Thanks #2! I solve the problem!

Original comment by wking...@gmail.com on 16 May 2015 at 10:25

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thanks #2 ... Things worked for me as per your suggestions... adding the lines 
to the ~/.zshrc solved the problem.... Thanks...

Original comment by himanshu...@grofers.com on 14 Jun 2015 at 6:03

GoogleCodeExporter commented 9 years ago
go to ~/.zshrc change the "bash" to "zsh" should fix the issue if you are using 
zsh.

This worked for me. Thanks ian.z...@sadasystems.com

Original comment by DesireHtc54 on 18 Jun 2015 at 8:14

GoogleCodeExporter commented 9 years ago
I'm happy to report that this is now fixed:

> cat ~/.zshrc | grep path.zsh.inc
> curl https://sdk.cloud.google.com/ | bash
> cat ~/.zshrc | grep path.zsh.inc
source '/tmp/google-cloud-sdk/path.zsh.inc'

Let us know if you're having any other zsh-specific issues.

Original comment by z...@google.com on 14 Aug 2015 at 8:49

GoogleCodeExporter commented 9 years ago
I'm happy to report that this is now fixed:

> cat ~/.zshrc | grep path.zsh.inc
> curl https://sdk.cloud.google.com/ | bash
> cat ~/.zshrc | grep path.zsh.inc
source '/tmp/google-cloud-sdk/path.zsh.inc'

Let us know if you're having any other zsh-specific issues.

Original comment by z...@google.com on 14 Aug 2015 at 8:49