LoginSignup
8
8

More than 5 years have passed since last update.

GVM で go1.5 のインストール

Last updated at Posted at 2015-08-15

Go 1.5 出た! - Qiita

go1.5 が、ようやくリリースされたようですね。
ますます、使いやすくなりそうで楽しみです。

Go 1.5 Release Notes

GVM を利用しての go1.5 のインストール手順

go1.5 からは、動作する go1.4 以上がブートストラップに必要になった。

go1.4.x が使われているのを確認

$ gvm list

gvm gos (installed)

   go1.4.1
=> go1.4.2

$ go version
go version go1.4.2 darwin/amd64

ブートストラップに使用する go を GOROOT_BOOTSTRAP に指定して go1.5 をインストール

$ env GOROOT_BOOTSTRAP=`go env GOROOT` gvm install go1.5
Installing go1.5...
 * Compiling...

go1.5 を確認

$ gvm use go1.5
Now using version go1.5
$ go version
go version go1.5 darwin/amd64

gvm で go1.5 をデフォルトにするには:

$ gvm use go1.5 --default
8
8
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
8
8