-bash: gcloud: commande introuvable sur Mac

Je suis à la suite de la Démarrage rapide pour Mac OS X pour installer le cloud SDK. En suivant les étapes exactement,

1) python -V renvoie "Python 2.7.10"

2) Télécharger et extraire à l'aide de ./install.sh la version 64 bits du SDK google-cloud-sdk est de retour...

Welcome to the Google Cloud SDK!
To help improve the quality of this product, we collect anonymized usage data
and anonymized stacktraces when crashes are encountered; additional information
is available at <https://cloud.google.com/sdk/usage-statistics>. You may choose
to opt out of this collection now (by choosing 'N' at the below prompt), or at
any time in the future by running the following command:
gcloud config set disable_usage_reporting true
Do you want to help improve the Google Cloud SDK (Y/n)?  Y
Your current Cloud SDK version is: 170.0.1
The latest available version is: 170.0.1
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
                                                  Components                                                 
├───────────────┬──────────────────────────────────────────────────────┬──────────────────────────┬───────────┤
     Status                             Name                                     ID                Size   
├───────────────┼──────────────────────────────────────────────────────┼──────────────────────────┼───────────┤
 Not Installed  App Engine Go Extensions                              app-engine-go              97.7 MiB 
 Not Installed  Cloud Bigtable Command Line Tool                      cbt                         4.0 MiB 
 Not Installed  Cloud Bigtable Emulator                               bigtable                    3.5 MiB 
 Not Installed  Cloud Datalab Command Line Tool                       datalab                     < 1 MiB 
 Not Installed  Cloud Datastore Emulator                              cloud-datastore-emulator   15.4 MiB 
 Not Installed  Cloud Datastore Emulator (Legacy)                     gcd-emulator               38.1 MiB 
 Not Installed  Cloud Pub/Sub Emulator                                pubsub-emulator            33.2 MiB 
 Not Installed  Emulator Reverse Proxy                                emulator-reverse-proxy     14.5 MiB 
 Not Installed  Google Container Local Builder                        container-builder-local     3.7 MiB 
 Not Installed  Google Container Registry's Docker credential helper │ docker-credential-gcr    │   2.2 MiB │
│ Not Installed │ gcloud Alpha Commands                                │ alpha                    │   < 1 MiB │
│ Not Installed │ gcloud Beta Commands                                 │ beta                     │   < 1 MiB │
│ Not Installed │ gcloud app Java Extensions                           │ app-engine-java          │ 128.1 MiB │
│ Not Installed │ gcloud app PHP Extensions (Mac OS X)                 │ app-engine-php-darwin    │  21.9 MiB │
│ Not Installed │ gcloud app Python Extensions                         │ app-engine-python        │   6.5 MiB │
│ Not Installed │ kubectl                                              │ kubectl                  │  15.9 MiB │
│ Installed     │ BigQuery Command Line Tool                           │ bq                       │   < 1 MiB │
│ Installed     │ Cloud SDK Core Libraries                             │ core                     │   6.7 MiB │
│ Installed     │ Cloud Storage Command Line Tool                      │ gsutil                   │   3.0 MiB │
└───────────────┴──────────────────────────────────────────────────────┴──────────────────────────┴───────────┘
To install or remove components at your current SDK version [170.0.1], run:
$ gcloud components install COMPONENT_ID
$ gcloud components remove COMPONENT_ID
To update your SDK installation to the latest version [170.0.1], run:
$ gcloud components update
==> Source [/Users/shaneoseasnain/Desktop/google-cloud-sdk/completion.bash.inc] in your profile to enable shell command completion for gcloud.
==> Source [/Users/shaneoseasnain/Desktop/google-cloud-sdk/path.bash.inc] in your profile to add the Google Cloud SDK command line tools to your $PATH.
For more information on how to get started, please visit:
https://cloud.google.com/sdk/docs/quickstarts

3) j'ai redémarré le terminal et exécutez gcloud init de l'intérieur de google-cloud-sdk. Cela renvoie "command not found." Si je lance ls, je vois la structure de répertoire suivante:

LICENSE               completion.zsh.inc      path.fish.inc
README                deb                     path.zsh.inc
RELEASE_NOTES         install.bat             platform
VERSION               install.sh              properties
bin                   lib                     rpm
completion.bash.inc   path.bash.inc

4) j'ai essayé d'exécuter gcloud init à l'intérieur de bin ainsi, mais obtenir le même problème, command not found.

La seule parmi les autres suggestions, je peux le voir dans le guide d'installation sont "activer la commande d'achèvement dans votre shell (bash), et/ou activer les rapports d'utilisation." Je ne suis pas sûr de savoir comment le faire, mais d'achèvement de commande et de reporting ne regardent pas comme ils devraient être associés à ce problème. Il y a beaucoup écrit au sujet de command not found mais ils se rapportent à d'autres problèmes, par exemple, gcloud a cessé de fonctionner après un certain temps ou des problèmes dans les anciennes versions. Quelqu'un a un conseil pour obtenir le nuage sdk de travail?

Grâce

OriginalL'auteur Shane O'Seasnain | 2017-09-10