export GOROOT=$HOME/go
export GOARCH=386
export GOOS=linux
export GOBIN=$HOME/bin
export PATH=$PATH:$GOBIN
Installed Mercurial:
$ sudo apt-get install mercurial
Checked out the repository:
$ hg clone -r release https://go.googlecode.com/hg/ $GOROOT
To build Go, you need to install GCC, the standard C libraries, Bison, make and ed:
$ sudo apt-get install bison gcc libc6-dev ed make
Builded the Go distribution:
$ cd $GOROOT/src
$ ./all.bash
At the end of the build:
--- cd ../test
1 known bugs; 0 unexpected bugs
Created hello.go source file and tested the build:
$ 8g hello.go
$ 8l hello.8
$ ./8.out
hello, world

No comments:
Post a Comment