wget https://storage.googleapis.com/golang/go1.7.linux-armv6l.tar.gz
tar -C /usr/local -xzf go1.7.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin
Last active
September 24, 2024 14:37
-
-
Save konradko/a9468beb70f0fa47766f5ebf966f24e8 to your computer and use it in GitHub Desktop.
Install Golang 1.7 on Raspberry Pi
works with go v1.8 too:
wget https://storage.googleapis.com/golang/go1.8.linux-armv6l.tar.gz
tar -C /usr/local -xzf go1.8.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin
@movalex Your second command should be
tar -C /usr/local -xzf go1.8.linux-armv6l.tar.gz
corrected, thanks!
I came here from Google. Updated for 1.8.3 (latest Go stable release):
wget https://storage.googleapis.com/golang/go1.8.3.linux-armv6l.tar.gz
sudo tar -C /usr/local -xzf go1.8.3.linux-armv6l.tar.gz
Then add:
export PATH=$PATH:/usr/local/go/bin
To your ~/.profile
file and it'll set it automatically on each login.
works great :)
After installation do source .profile or reboot :)
Add the following to ~/.profile
to include installed Go packages to PATH
export PATH=$PATH:/usr/local/go/bin:~/go/bin
Go 1.9 :
wget https://storage.googleapis.com/golang/go1.9.linux-armv6l.tar.gz
sudo tar -C /usr/local -xzf go1.8.3.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin
@jebeaudet Your second command should be
sudo tar -C /usr/local -xzf go1.9.linux-armv6l.tar.gz
If already installed golang with apt-get, then need:
sudo apt remove golang
sudo apt-get autoremove
source .profile # need first add "export PATH=$PATH:/usr/local/go/bin:~/go/bin" to it
Version 1.9.2
wget https://redirector.gvt1.com/edgedl/go/go1.9.2.linux-armv6l.tar.gz
sudo tar -C /usr/local -xzf go1.9.2.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin
can you create independent /go/bin
folders to link an entirely new project?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Should probably use
export PATH=/usr/local/go/bin:$PATH
to ensure the local go installation is referenced first for binaries.