Skip to content

Instantly share code, notes, and snippets.

@jerrychan807
Created September 16, 2022 09:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jerrychan807/2a8245d03866f3908a3cddd7e56127d0 to your computer and use it in GitHub Desktop.
Save jerrychan807/2a8245d03866f3908a3cddd7e56127d0 to your computer and use it in GitHub Desktop.
# 下载源码
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment