$GOROOT needs to be the directory of your source tree. (i.e.
$GOROOT/src/make.bash should exist).
$GOBIN (defaults to $HOME/bin) needs to exist, we writeable and be in your PATH.
AGL
as for the failing test, if you have firewall turned on that's why.
one of the tests is using go's own DNS resolver. It's being blocked
by firewall because it uses UDP.
--
Omnem crede diem tibi diluxisse supremum.
We haven't fixed this yet, but you can track the progress at
http://code.google.com/p/go/issues/detail?id=21
Russ
> on OS/X Snow Leopard I couldn't install it either - there were several
> problems. First I had to use a different temp folder because GO didn't
> like that mine had a trailing /. Then I tried running the contents of
> the all.bash individually as sudo and got your problem $GOROOT is not
> set correctly. You have to add the GO* environment variables to /etc/
> sudoers (Defaults env_keep += "GOROOT GOBIN GOOS GOBIN GOARCH") so
> they are maintained when you run sudo. Then I ran sudo ./all.bash and
> got further - now I have a failing test.
>
>
> rm -f _test/os.a
> gopack grc _test/os.a _gotest_.6
> --- FAIL: os_test.TestRemoveAll
> RemoveAll "_obj/_TestRemoveAll_" succeeded with chmod 0 subdirectory?
> (extra *os.PathError=lstat _obj/_TestRemoveAll_: no such file or
> directory)
> FAIL
> make[1]: *** [test] Error 1
> make: *** [os.test] Error 2
That happens if you runt the tests as root, which I don't really
recommend. In any case, at this point the compiler and libraries have
been built and installed, and you can use them.
Ian