gcloud command not found - while installing Google Cloud SDK

后端 未结 28 1197
忘掉有多难
忘掉有多难 2020-12-07 13:43

I am on a mac and am trying to install the Google Cloud SDK (including the gcloud command line utility) using this command in terminal

curl https://sdk.cloud         


        
28条回答
  •  星月不相逢
    2020-12-07 14:28

    How to install GCloud and Always Works after Restart On Mac OS HIGH Sierra:

    1. Download install package Here

    2. Achieved file and drop in your folder

    3. Open terminal, go to your folder with file and enter this command:

       ./google-cloud-sdk/install.sh
      
    4. "Modify profile to update your $PATH and enable bash completion?"
      Yes

    5. Enter this path to modify:
      /Users/USERNAME_COMPUTER/.bashrc
    6. After all install, enter this:

        source ~/.bashrc
      
    7. Enter this to check install gcloud:

      gcloud - -version

    8. Open new window terminal cmd+n DONT CLOSE OLD WINDOW and enter in new window gcloud version

      if: «command not found» go to step 9

      else: Congratulations GCloud work in terminal

    9. Return to old window and enter echo $PATH and copy path to GCloud

    10. Open BASH_PROFILE:

      open ~/.bash_profile
      
    11. Enter path to new Bash:

      « export PATH="/Users/USERNAME_COMPUTER/google-cloud-sdk/bin:$PATH" »
      
    12. Return to step 8

提交回复
热议问题