Created
February 8, 2017 23:36
-
-
Save tgerring/50d9a5f01db32c252e4aa2dfd42a539d to your computer and use it in GitHub Desktop.
golang setup & geth installation ubuntu/debian
This file contains hidden or 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
For YouTube video located at https://youtu.be/1VjcrPGXY2E | |
# SETUP GOLANG | |
GOVERSION="1.7.5" | |
[[ `uname -m` = "x86_64" ]] && GOARCH="amd64" || GOARCH="386" | |
wget https://storage.googleapis.com/golang/go$GOVERSION.linux-$GOARCH.tar.gz | |
sudo rm -rf /usr/local/go/ && sudo tar -C /usr/local -xzf go$GOVERSION*.tar.gz | |
echo 'export GOPATH=$HOME/go' >> ~/.bashrc | |
echo 'export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin' >> ~/.bashrc | |
source ~/.bashrc && go version | |
# SETUP GETH | |
mkdir -p $GOPATH/bin | |
git clone https://github.com/ethereum/go-ethereum.git | |
cd go-ethereum && make | |
cp build/bin/geth $GOPATH/bin/geth |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment