geth的安装(Linux)

📅 2026/7/22 13:44:51 👁️ 阅读次数 📝 编程学习
geth的安装(Linux)

基于Linux系统geth的安装

更多技术博客 http://vilins.top/

安装ethereum

sudo apt-get install software-properties-common sudo add-apt-repository -y ppa:ethereum/ethereum sudo add-apt-repository -y ppa:ethereum/ethereum-dev 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 -y ppa:ethereum/ethereum sudo add-apt-repository -y ppa:ethereum/ethereum-dev sudo apt-get update sudo apt-get install solc

或者直接

sudo apt-get install solc

更多技术博客 http://vilins.top/