Skip to content

Instantly share code, notes, and snippets.

@MilosSimic
Forked from pcgeek86/install_go_pi.sh
Created December 25, 2019 15:23
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 MilosSimic/7a9d4bcd3dd05b35a818a86db5fe7308 to your computer and use it in GitHub Desktop.
Save MilosSimic/7a9d4bcd3dd05b35a818a86db5fe7308 to your computer and use it in GitHub Desktop.
Install Go Lang on Raspberry Pi
cd $HOME
FileName='go1.13.4.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