基于Linux系统geth的安装

转载地址

https://blog.csdn.net/qq_36124194/article/details/83658580

基于Linux系统geth的安装

安装ethereum

sudo apt-get install software-properties-common
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum

然后用

geth --help

检查是否安装成功

go语言的安装

curl -O https://storage.googleapis.com/golang/go1.5.1.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.5.1.linux-amd64.tar.gz
mkdir -p ~/go; echo "export GOPATH=$HOME/go" >> ~/.bashrc
echo "export PATH=$PATH:$HOME/go/bin:/usr/local/go/bin" >> ~/.bashrc
source ~/.bashrc

如果第一句命令运行不成功,手动下载然后解压

安装solc编译器

sudo add-apt-repository ppa:ethereum/ethereum-qt
sudo add-apt-repository ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install cpp-ethereum

或者直接

sudo apt-get install solc
posted @ 2018-11-05 01:55  qq874455953  阅读(891)  评论(0编辑  收藏  举报