so i played with the path. Made sure the new go is first
export PATH=/usr/lib/go-1.7/bin:$PATH
$ go env
warning: GOPATH set to GOROOT (/usr/lib/go-1.7) has no effect
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/usr/lib/go-1.7"
GORACE=""
GOROOT="/usr/lib/go-1.7"
GOTOOLDIR="/usr/lib/go-1.7/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build143187690=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
but for some reason, it is still getting 1.6.3 when I make.
$ sudo make gmc
build/env.sh go run build/ci.go install ./cmd/gmc
>>>usr/lib/go-1.6/bin/go install -ldflags -X main.gitCommit=d849d276a68d6f7a9b86ab9cc501f65325bfda2e -v ./cmd/gmc
Done building.
Run "build/bin/gmc" to launch musicoin.
ubuntu@ip-172-31-34-201:~/go-musicoin$ cd build/
ubuntu@ip-172-31-34-201:~/go-musicoin/build$ cd bin/
ubuntu@ip-172-31-34-201:~/go-musicoin/build/bin$ ./gmc version
GMC
Version: 2.0.0-stable-d849d276
Protocol Versions: [63 62]
Network Id: 7762959
Go Version: go1.6.3
OS: linux
GOPATH=/usr/lib/go-1.7
GOROOT=/usr/lib/go-1.7
it seems you have GOPATH misconfigured. LIB folders are used for libraries and not binaries. based on your previous post, you probably should have used "/home/ubuntu/go"
warning: GOPATH set to GOROOT (/usr/lib/go-1.7) has no effect
here is mine. try to adjust yours accordingly.
orchard@etc-eu:~$ go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/orchard/go"