Golang: GPM ERROR: Failed to compile. Check the logs


I got following error during go 1.8 installation using GVM ( Golang Version Manager) :

yusuf@yusuf-he:~/htdocs/xxx*$ gvm install go1.8
Downloading Go source…
Installing go1.8…
* Compiling…
ERROR: Failed to compile. Check the logs at /home/yusuf/.gvm/logs/go-go1.8-compile.log
ERROR: Failed to use installed version

My current system go version is:

go version go1.7.3 linux/amd64

and my OS is:

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty

Solution that proven to work on my machine above was by following the instruction at the following url

gvm install go1.4 
gvm use go1.4 
export GOROOT_BOOTSTRAP=$GOROOT 
gvm install go1.5   (or another higher go version)

The reason why the error happened

You will need go1.4 installed before you can install go1.5 (since this is compiling from go source and 1.5 doesnt use C anymore) run gvm install go1.4 gvm use go1.4 export GOROOT_BOOTSTRAP=$GOROOTthen run gvm install go1.5 . This should be fixed in pull #154

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s