cd ~/temp
wget https://dl.google.com/go/go1.10.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.10.linux-amd64.tar.gz
rm -rf go1.10.linux-amd64.tar.gz
go
binary to PATH
. To update ~/.bashrc
file, run:echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.bashrc
Login and logout (or run source ~/.bashrc
) so that changes propagate to PATH
.
Clone and build go-ethereum latest version:
cd ~
mkdir dev
cd dev
git clone https://github.com/ethereum/go-ethereum.git
cd go-ethereum
git checkout v1.8.2
make -j 2 geth
geth
so that you can run it from anywhere (adjust the source path as necessary!):sudo ln -s /home/ubuntu/dev/go-ethereum/build/bin/geth /usr/bin/geth
This howto is part of a larger collection of howtos maintained by the author (mostly for his own reference). The source code for the current howto in plain Markdown is available on GitHub. If you have a GitHub account, you can jump straight in, and suggest edits or improvements via the link at the bottom of the page (Improve this page).
made with ❤ by Valera Rozuvan