LoginSignup
3
3

More than 5 years have passed since last update.

go1.5のインストール

Last updated at Posted at 2015-11-21

go1.5のビルドにはgo1.4が必要になったそうで
セットアップ手順をまとめてみる。

go1.4のビルド

$ cd
$ git clone -b release-branch.go1.4 https://go.googlesource.com/go $HOME/go1.4
$ cd $HOME/go1.4/src
$ ./make.bash

go1.5のビルド

$ cd
$ wget https://storage.googleapis.com/golang/go1.5.1.src.tar.gz
$ tar xf go1.5.1.src.tar.gz
$ mv go go1.5
$ cd go1.5/src
$ ./make.bash

環境変数

$ echo "PATH=\$PATH:\$HOME/go1.5/bin" >> ~/.bashrc
$ echo "PATH=\$PATH:\$HOME/.go/bin" >> ~/.bashrc
$ echo "export GOPATH=$HOME/.go" >> ~/.bashrc
$ source ~/.bashrc

godocのインストール

# yum install mercurial
$ go get golang.org/x/tools/cmd/godoc
$ godoc fmt

参考

Go 1.5 以降のビルド手順 - Qiita
http://qiita.com/orociic/items/b285cf205f75b7291a9d

3
3
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
3
3