:
root@Ubuntu-1304-raring-64-minimal:/etc
Linux Ubuntu-1304-raring-64-minimal 3.8.13.4
:
cd /usr/local
mkdir /var/go
apt-get install mercurial
hg clone https://code.google.com/p/go/
/etc/profile.d/go.sh follewing :
export GOPATH=/var/go
export GOROOT=/usr/local/go
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOBIN
export GOROOT_FINAL=/var/go
export GOHOSTARCH=amd64
export GOARCH=amd64
export CGO_ENABLED=1
. NO source xxx - ! :
cd /usr/local/go/src
./make.bash
do this and then copy all things from / usr / local / go to / var / go - or is there a way to combine both directories with symlink, no matter what you prefer. After this comment GOROOT_FINAL in the go.sh script above And restart your shell again. And you're fine with Go's latest working language!
root@Ubuntu-1304-raring-64-minimal:/usr/work/golang/go/src
go version devel +35d5bae6aac8 Fri Oct 18 10:45:19 2013 +0400 linux/amd64
Note bene: Two shell reloads are required - this was difficult.
source
share