Skip to content

Instantly share code, notes, and snippets.

@lewixlabs
Forked from pcgeek86/install_go_pi.sh
Created August 30, 2019 10:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lewixlabs/45b9c3743428c4d5db6521aa1d506a87 to your computer and use it in GitHub Desktop.
Save lewixlabs/45b9c3743428c4d5db6521aa1d506a87 to your computer and use it in GitHub Desktop.
Install Go Lang 1.11.1 on Raspberry Pi 3 B+
cd $HOME
FileName='go1.11.1.linux-armv6l.tar.gz'
wget https://dl.google.com/go/$FileName
sudo tar -C /usr/local -xvf $FileName
cat >> ~/.bashrc << 'EOF'
export GOPATH=$HOME/go
export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin
EOF
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment