Skip to content

Instantly share code, notes, and snippets.

Last active April 12, 2020 17:36
  • Star 44 You must be signed in to star a gist
  • Fork 15 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save konradko/a9468beb70f0fa47766f5ebf966f24e8 to your computer and use it in GitHub Desktop.
Install Golang 1.7 on Raspberry Pi
tar -C /usr/local -xzf go1.7.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin
Copy link

MilosSimic commented Jul 14, 2017

works great :)

After installation do source .profile or reboot :)

Copy link

Add the following to ~/.profile to include installed Go packages to PATH

export PATH=$PATH:/usr/local/go/bin:~/go/bin

Copy link

Go 1.9 :

sudo tar -C /usr/local -xzf go1.8.3.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin

Copy link

KvantSveta commented Sep 13, 2017

@jebeaudet Your second command should be

sudo tar -C /usr/local -xzf go1.9.linux-armv6l.tar.gz

Copy link

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

Copy link

Yarpii-Rocks commented Dec 25, 2017

Version 1.9.2

sudo tar -C /usr/local -xzf go1.9.2.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin

Copy link

ali2077 commented Aug 31, 2018

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