I have Ubuntu on Linode VPS.
I intstalled latest Golang as instructed on this page (http://golang.org/doc/install) - steps taken are
- wget http://go.googlecode.com/files/go1.2.linux-amd64.tar.gz
- tar -C /usr/local -xzf go1.2.linux-amd64.tar.gz
- Added a line "export PATH=$PATH:/usr/local/go/bin" in "/etc/profile"
After this, however, when I type in "go", I get "program 'go' is not installed".
So I did
"source /etc/profile"
And after that it worked. However, when I logged out and logged back in, it didn't work and I got the same error. So I did "source /etc/profile" and it worked again.
But, even after "source /etc/profile", if I change my user name to something else (e.g. "root"), I get the same error.
I've been reading and it looks like something to do with loading ".profile" or ".bashrc". But I'm not sure what the difference is between the two. What I want to achieve is to install "go" so that any user can run it.
Any ideas?