Last active
September 5, 2023 01:32
-
-
Save YusukeIwaki/4e62176f7601680844986432a5148d0b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://dl.google.com/go/go1.12.7.linux-amd64.tar.gz | |
rm -rf go/ | |
tar xzvf go1.12.7.linux-amd64.tar.gz | |
sudo mv go /usr/local/go | |
sudo touch /etc/profile.d/golang.sh | |
echo 'export GOROOT=/usr/local/go' | sudo tee --append /etc/profile.d/golang.sh | |
echo 'export GOPATH=~/' | sudo tee --append /etc/profile.d/golang.sh | |
echo 'export PATH=$GOROOT/bin:$PATH' | sudo tee --append /etc/profile.d/golang.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment