潇湘沐
一、确保需要的命令已经有了$ sudo apt-get install bison ed gawk gcc libc6-dev make python-setuptools python-dev build-essential$ sudo easy_install mercurial二、获取代码库$ hg clone -r release三、安装go语言$ cd go/src$ ./all.bash四、测试是否安装成功编辑源文件hello.gopackage mainimport "fmt"func main() {fmt.Printf("Hello, Maojie Tang!\n");}编译源文件$ 8g hello.go链接源文件$ 8l hello.8得到可执行文件8.out,运行之$ ./8.out得到输出为Hello, Maojie Tang!