Description
AS SUPERUSER(root):
1)Install Debian GNU/Linux "testing" version(aka jessie) from a netinst iso.
2)Then upgrade your clean jessie install to "unstable" version(aka sid).
2.1)First ensure your /etc/apt/sources.list contains the following:
deb http://http.us.debian.org/debian unstable main contrib non-free
deb-src http://http.us.debian.org/debian unstable main contrib non-free
deb http://mirrors.kernel.org/debian unstable main contrib non-free
deb-src http://mirrors.kernel.org/debian unstable main contrib non-free
2.2)Do these apt commands to update and upgrade to sid:
apt-get update
apt-get -u dist-upgrade
You will have to reboot a couple of times through this. Bear with it.
3)Once in sid version install the following:
3.1)To build the golang distribution from sources, you will need to install these:
apt-get install mercurial
apt-get install gcc
3.2)To build conformal systems gotk3, you will need these:
apt-get install pkg-config
apt-get install libgtk-3-dev
apt-get install libcairo2-dev
apt-get install libglib2.0-dev
3.3)I highly recommend you learn emacs. Install emacs and the emacs golang-mode.
apt-get install emacs
apt-get install golang-mode
4)AS A REGULAR USER(not root) do the following:
4.1)fetch golang sources and build
hg clone -u release https://code.google.com/p/go
cd go/src/
./all.bash
4.2)setup your environment variables for golang
export GOROOT=/home/loongson/go
export GOPATH=/home/loongson/Code/go
export PATH=$PATH:$GOPATH/bin:$GOROOT/bin
4.3)fetch and build gotk3 sources
go get code.google.com/p/go.tools/cmd/...
go get github.com/conformal/gotk3/gtk
4.4)now compile a gotk3 sample
cd Code/go/src/github.com/conformal/gotk3/gtk/examples/grid/
go build