Go言語とかやってみようかな
と思ったのだけれども、Homebrewすら入っていなかったのでまずはそこから。
ちなみに、Go言語をやってみようと思ったのに意味はない。なんとなく。
Homebrewのインストール
「Homebrew インストール」でググると Xcode もしくは Command Line Tools を
インストールして〜と出てきますが、どちらもインストールしていない状態です。
インストール
Homebrewのサイトに行って
brew.sh
「インストール」と書かれている下に書いてあるコマンドを流す。
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
ところが、Installing Command Line Tools
ってところで止まった(止まっているように見える)...
と思ったら動き出した。
ここで、20分ぐらい止まっていたように思う。
すべてのインストールが終わるまでは、およそ30分ぐらい。
確認
$ brew doctor Your system is ready to brew. $ brew -v Homebrew 1.7.1 $ ls /usr/local/ Cellar bin lib share Frameworks etc opt var Homebrew include sbin
参考
Goのインストール
インストール
$ brew install go
$ brew install go Updating Homebrew... ==> Downloading https://homebrew.bintray.com/bottles/go-1.10.3.high_sierra.bottle. ######################################################################## 100.0% ==> Pouring go-1.10.3.high_sierra.bottle.tar.gz ==> Caveats A valid GOPATH is required to use the `go get` command. If $GOPATH is not specified, $HOME/go will be used by default: https://golang.org/doc/code.html#GOPATH You may wish to add the GOROOT-based install location to your PATH: export PATH=$PATH:/usr/local/opt/go/libexec/bin ==> Summary 🍺 /usr/local/Cellar/go/1.10.3: 8,170 files, 336.7MB