Last active
August 12, 2017 00:18
-
-
Save kentarosasaki/7d52297d7a483f381c6e3fc701906732 to your computer and use it in GitHub Desktop.
ホームディレクトリにGolangをインストールする ref: http://qiita.com/kentarosasaki/items/90ce0b4f5855d9aad458
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
cd /tmp | |
wget https://storage.googleapis.com/golang/go1.8.linux-amd64.tar.gz | |
tar zxvf go1.8.linux-amd64.tar.gz | |
mv /tmp/go ~/goroot |
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
cat << 'EOF' >> ~/.bash_profile | |
export GOROOT=$HOME/goroot | |
export PATH=$GOROOT/bin:$PATH | |
EOF |
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
exec -l $SHELL |
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
export GOPATH=$HOME/go |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment