Tuesday, November 17, 2009

Install Google GO

To install the Google's GO on Ubuntu Karmic
vim ~/.bashrc && exit (or open a new terminal or . ~/.bashrc)

Add these lines into it:
export GOROOT=$HOME/go
export GOARCH=386
export GOOS=linux
export GOBIN=$HOME/bin
export PATH=$GOBIN:$PATH

The last two are not listed on the GO site, but I needed them to compile.

mkdir ~/bin && chmod 755 ~/bin && . ~/.bashrc
sudo apt-get install python-setuptools python-dev
sudo apt-get install mercurial

To pull the Go source
hg -v clone -r release https://go.googlecode.com/hg/ $GOROOT
sudo apt-get install bison gcc libc6-dev ed make
cd $GOROOT/src && ./all.bash

2 comments:

Chintan Dave said...

Hi Arun,

Happened to visit your blog when searching something on google.

Good the way you described the term "Hacking". It would have been great had you also pointed the reference to real source of this definition (Hacking the Art of Exploitation by Jon Erricson).

None the less, good job man :)
Keep it up. Just felt like commenting, hope that does not offend you :)

Arun said...

@Chintan
Thanks for your comment. :)