First, install the Geth CLI environment firstsudo apt-get install geth,这个很重要
Second, download the source code
git clone https://github.com/ethereum/go-ethereum
I downloaded it to/home/siegel/ethereum/.
Change folder permissions to writable Chmod-r 777/home/siegel/ethereum/go-ethereum
Step Three
sudo apt-get install Software-properties-commonsudo add-apt-repository-y ppa:ethereum/ethereumsudo apt-get Updatesudo Apt-get Install Ethereum
Then enter Geth--help to see if the installation was successful
Fourth Step
git clone https://github.com/ethereum/go-ethereum
curl -O https://storage.googleapis.com/golang/go1.7.3.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.7.3.linux-amd64.tar.gz
Mkdir-p ~/go
Export Gopath= $HOME/go
Export path= $PATH: $HOME/go/bin:/usr/local/go/bin
sudo apt-get install-y build-essential Golang
Fifth Step
Cd/home/siegel/ethereum/go-ethereum
Make Geth
Development environment for building Ethereum Go-ethereum source code based on Ubuntu system