# 下载源码
https://github.com/ethereum/go-ethereum/releases
# 解压源码:
tar -xzf go-ethereum-1.9.7.tar.gz
# 编译:
cd go-ethereum-1.9.7
# make all 还会编译一些其他的程序套件
make all
编译完成后,此时会在 go-ethereum-1.9.7/build/bin
中生成geth可执行文件。
输入 geth help 命令,会显示geth所有的命令和选项:
cd build/bin
./geth help
为安装路径建立软连接(要写对你解压的所在目录路径)
ln -s /root/go-ethereum-1.10.25/build/bin/abigen /usr/local/bin/abigen
测试一下:
abigen -h