Thursday, November 12, 2009

Installing Go programming language story

Few days ago google released 'go' programming language - very fast, compiling and many-many other features. Official site for this http://golang.org. Also you can view presentation on YouTube.

I've tried it on my Windows desktop under cygwin using http://golang.org/doc/install.html  and failed with an error:

%%%% making lib9 %%%%

quietgcc -ggdb -I/cygdrive/c/work/go/include -O2 -fno-inline -c /cygdrive/c/work/go/src/lib9/_p9dir.c
quietgcc -ggdb -I/cygdrive/c/work/go/include -O2 -fno-inline -c /cygdrive/c/work/go/src/lib9/_exits.c
quietgcc -ggdb -I/cygdrive/c/work/go/include -O2 -fno-inline -c /cygdrive/c/work/go/src/lib9/argv0.c
quietgcc -ggdb -I/cygdrive/c/work/go/include -O2 -fno-inline -c /cygdrive/c/work/go/src/lib9/atoi.c
/cygdrive/c/work/go/src/lib9/_p9dir.c:245: error: 'struct stat' has no member named 'st_gen'
make: *** [_p9dir.o] Error 1
make: *** Waiting for unfinished jobs....
 Next, I've installed latest version 3.0.10 of VirtualBox and Ubuntu 9.10 x64 on my Windows XP 32bit desktop.
Having installed all required dependencies and trying to clone repo:
svidyuk@svidyuk-desktop:~$ hg clone -r release https://go.googlecode.com/hg/ /home/svidyuk/go
abort: error: _ssl.c:480: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
Googleing for this error found on launchpad that https not supported behind proxy... So, I've simply typed:
svidyuk@svidyuk-desktop:~$ hg clone -r release http://go.googlecode.com/hg/ /home/svidyuk/go
requesting all changes
adding changesets
adding manifests
adding file changes
added 3976 changesets with 16799 changes to 2931 files
updating working directory
1640 files updated, 0 files merged, 0 files removed, 0 files unresolved
And... in few minutes I've faced issue similar to 53. So I've added http to NOTEST in pkg/Makefile, then it hangs on testing net then added net to NOTEST and go!

./8.out
hello, world
And now... go,go,go! Install it and try. BTW does native client support means that we can script Chrome with go?

No comments: