Installing Go on Ubuntu - "The program 'go' is currently not installed"
This should be a simple thing.
I followed the instruction on "http://golang.org/doc/install" to install "Go" on Ubuntu.
- Downloaded it
- Unzipped it to "usr/local"
- Added the path in "/etc/profile" (export PATH=$PATH:/usr/local/go/bin)
But when I type in "go" it says "The program 'go' is currently not installed".
What should I do?
gedit /etc/profile
Add the below line,
export PATH=$PATH:/usr/local/go/bin
Then source the /etc/profile,
source /etc/profile
Logout and login back.
You can use this, for system-wide installation:
echo 'PATH DEFAULT=${PATH}:/usr/local/go/bin' | sudo tee -a /etc/environment
Logout then back in.