Cloudboot icon indicating copy to clipboard operation
Cloudboot copied to clipboard

Centos 6.5 无法安装go

Open crasybest opened this issue 9 years ago • 4 comments

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 avatar Jan 08 '16 03:01 crasybest

@crasybest

您需要拷贝到您的目标目录,您可以看看这个文章: http://blog.simpleyuan.com/29.html

yunji-devin avatar Jan 08 '16 03:01 yunji-devin

你需要下载一个1.4x的go,然后把他的路径设置为环境变量GOROOT_BOOTSTRAP

sageskr avatar Jan 08 '16 13:01 sageskr

这个指导有问题,安装1.5执行会报错,下载1,4的然后安装就没有问题

elven2016 avatar Jan 13 '16 02:01 elven2016

@elven2016 ,对,后面说明里已经改为1.4,感谢提醒 :)

yunji-devin avatar Jan 14 '16 01:01 yunji-devin