root@Aaron:~# sudo apt-get install curl git mercurial make binutils bison gcc build-essential -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
binutils is already the newest version.
bison is already the newest version.
build-essential is already the newest version.
curl is already the newest version.
gcc is already the newest version.
make is already the newest version.
mercurial is already the newest version.
git is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@Aaron:~# bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
ERROR: Already installed!
root@Aaron:~# gvm install go1.4
Already installed!
root@Aaron:~# gvm use go1.4 [--default]
Now using version go1.4
root@Aaron:~# gvm install go1.4 -B
Already installed!
root@Aaron:~# gvm use go1.4
Now using version go1.4
root@Aaron:~# export GOROOT_BOOTSTRAP=$GOROOT
root@Aaron:~# gvm install go1.5
Installing go1.5...
* Compiling...
ERROR: Failed to compile. Check the logs at /root/.gvm/logs/go-go1.5-compile.log
ERROR: Failed to use installed version
我尝试在三个不同的Linux vps上多次执行此操作,并且它们都给出相同的错误。我当前的go版本是go1.4 linux / amd64。我试过重新安装,但也没有用。
编译日志的输出是
构建Go引导程序工具。
指令/距离
使用/root/.gvm/gos/go1.4构建Go工具链。
引导程序/内部/ obj
引导程序/内部/ obj / arm
引导程序/内部/ obj / arm64
引导程序/内部/ obj / ppc64
引导程序/内部/ obj / x86
bootstrap / asm / internal / arch
bootstrap / asm / internal / flags
bootstrap / asm / internal / lex
引导程序/ asm /内部/ asm
引导/ asm
引导程序/编译/内部/大
引导程序/内部/ gcprog
引导程序/编译/内部/ gc
去构建bootstrap / compile / internal / gc:/root/.gvm/gos/go1.4/pkg/tool/linux_amd64/6g:信号:被杀死
引导程序/链接/内部/ ld
引导程序/链接/内部/ amd64
引导程序/链接/内部/手臂
引导程序/链接/内部/ arm64
引导程序/链接/内部/ ppc64
引导程序/链接/内部/ x86
引导/链接
转到工具dist:失败:/root/.gvm/gos/go1.4/bin/go install -v bootstrap / ...:退出状态1
最佳答案
这行看起来很奇怪:
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
尝试:
bash <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
并注意,通过这种方式,您相信
moovweb
可以执行他们在该脚本中输入的所有指令。如果这不起作用,该命令会告诉您查看
/root/.gvm/logs/go-go1.5-compile.log
。那里有什么重要的东西吗?关于linux - Debian vps上的gvm安装错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/45251555/