34
22

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[メモ] Google Cloud SDKをHomebrewを使ってMacにインストールした時のメモ

Last updated at Posted at 2018-04-28
  1. brew cask install google-cloud-sdk する.
  2. brew cask infoで出る下記のような注意書きの通りに .profile.bashrc.zshrc などの適切なところに指定のスクリプトを実行する2行をいれる. これをしないとパスが通らない.

$ brew cask info google-cloud-sdk
(中略)
==> Caveats
google-cloud-sdk is installed at /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk. Add your profile:

for bash users
source '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.bash.inc'
source '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.bash.inc'

for zsh users
source '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc'
source '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc'

※ Homebrewにおける注意事項として、brew installbrew cask install の後にCaveatsがあればCaveatsに従って諸々の設定を行う作業が必須ということがあります。Homebrewならコマンドで一発インストールできると思い込みがちですが、必ずしもそうではありません。皆さんもCaveatsを見逃さないように注意しましょう。特に複数のbottleを同時にインストールした時などは見逃しやすいので気をつけてくださいね。

34
22
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
34
22

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?