Go CentOS 5.4へのインストール

estis2009/12/27 (日) 21:03 に投稿

http://golang.jp/install
http://golang.org/doc/install.html
を参考にインストール。

ちょっと手抜きで、rootで作業した。

/root/.bashrc に環境変数設定。

 export GOROOT=$HOME/go
 export GOOS=linux
 export GOARCH=386

Mercurial をインストール

 yum install python-setuptools
 easy_install mercurial

リポジトリからの取得
 $GOROOTが存在し、空でないと失敗するらしい。

 hg clone -r release https://go.googlecode.com/hg/ $GOROOT

$GOBINディレクトリを作成。(設定していないので$HOME/bin、つまり/root/bin)

 mkdir /root/bin

Go言語のインストール

 cd $GOROOT/src
 ./all.bash

 1 known bugs; 0 unexpected bugs って最後に出た。