编译安装go语言(ubuntu)
摘要:
vi ~/.bashrc#在文件末尾追加如下环境变量#export GOROOT=$HOME/go#export GOARCH=386#export GOOS=linux#export GOBIN=$HOME/binhg#提示无效的命令 让执行下面的命令 可以获得hgsudo apt-get install mercurialhg clone -r release https://go.googlecode.com/hg/ $GOROOTcd $GOROOT/src./all.bash不过ubuntu似乎直接支持安装:sudo apt-get install golang-go~/.bashr 阅读全文
posted @ 2012-08-18 17:39 codestyle 阅读(578) 评论(0) 推荐(0)