Centos 6.5 无法安装go
2.Deploy Server
Install Go
Download the latest stable version source code
wget https://storage.googleapis.com/golang/go1.5.2.src.tar.gz
Copied to the user's work directory
cp go1.5.2.src.tar.gz /home/<USER>/
Unzip
tar xf go1.5.2.src.tar.gz
Compile
cd go/src/ && ./make.bash
执行Compile时提示: [root@mq1 src]# ./make.bash
Building Go bootstrap tool.
cmd/dist ERROR: Cannot find /root/go1.4/bin/go. Set $GOROOT_BOOTSTRAP to a working Go tree >= Go 1.4. ./make.bash: line 121: /root/go1.4/bin/go: No such file or directory
请求指导。。。。
@crasybest
您需要拷贝到您的目标目录,您可以看看这个文章: http://blog.simpleyuan.com/29.html
你需要下载一个1.4x的go,然后把他的路径设置为环境变量GOROOT_BOOTSTRAP
这个指导有问题,安装1.5执行会报错,下载1,4的然后安装就没有问题
@elven2016 ,对,后面说明里已经改为1.4,感谢提醒 :)