26
26

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.

Go 1.5 以降のビルド手順

Last updated at Posted at 2015-01-17

Go 1.5 Bootstrap

Go 1.5 以降では、Go自体をビルドするのに Go 1.4が必要になるそうです。

最新のツリーをビルドするには、下記のどちらかを事前に準備しておく必要がある。

  • $HOME/go1.4 を用意する
  • $GOROOT_BOOTSTRAP を自分で設定する

ちなみに、$GOROOT_BOOTSTRAP の default は、$HOME/go1.4 だそうです。

$HOME/go1.4 を 使用する場合

Go 1.4 ビルド

まずは、$HOME/go1.4 をビルドしておく

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

最新のGoをビルド

git clone https://go.googlesource.com/go $HOME/go
cd $HOME/go/src
./make.bash
26
26
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
26
26

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?