Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Golang 1.7 on Raspberry Pi
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
@gavinscheele

This comment has been minimized.

Copy link

@gavinscheele gavinscheele commented Jan 27, 2017

sudo tar ...

@tonylambiris

This comment has been minimized.

Copy link

@tonylambiris tonylambiris commented Feb 4, 2017

Should probably use export PATH=/usr/local/go/bin:$PATH to ensure the local go installation is referenced first for binaries.

@movalex

This comment has been minimized.

Copy link

@movalex movalex commented Jun 2, 2017

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
@conr

This comment has been minimized.

Copy link

@conr conr commented Jun 4, 2017

@movalex Your second command should be

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

@movalex

This comment has been minimized.

Copy link

@movalex movalex commented Jun 5, 2017

corrected, thanks!

@slimsag

This comment has been minimized.

Copy link

@slimsag slimsag commented Jun 25, 2017

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.

@MilosSimic

This comment has been minimized.

Copy link

@MilosSimic MilosSimic commented Jul 14, 2017

works great :)

After installation do source .profile or reboot :)

@chrisvdg

This comment has been minimized.

Copy link

@chrisvdg chrisvdg commented Aug 20, 2017

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

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

This comment has been minimized.

Copy link

@jebeaudet jebeaudet commented Sep 11, 2017

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
@KvantSveta

This comment has been minimized.

Copy link

@KvantSveta KvantSveta commented Sep 13, 2017

@jebeaudet Your second command should be

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

@simoncos

This comment has been minimized.

Copy link

@simoncos simoncos commented Sep 21, 2017

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
@Yarpii-Rocks

This comment has been minimized.

Copy link

@Yarpii-Rocks Yarpii-Rocks commented Dec 25, 2017

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

@ali2077

This comment has been minimized.

Copy link

@ali2077 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