2010-10-07

Ubuntu下安裝go

最近嘗試在ubuntu下安裝go,這裡是把步驟寫下來而已



在終端機內
$ sudo apt-get install bison ed gawk gcc libc6-dev make
$ sudo apt-get install python-setuptools python-dev build-essential
$ sudo easy_install mercurial
$ hg clone -r release https://go.googlecode.com/hg/ go

$ cd go/src
$ ./all.bash

到這裡,go就安裝好了
接下來要在.bashrc裡面加入(我是習慣用 $sudo nano .bashrc)
PATH=$PATH:$HOME/go/bin
export PATH
export GOROOT=$HOME/go
export GOARCH=386
export GOOS=linux

沒有留言: