智能合约环境搭建
编译 go-ethereum
代码语言:javascript复制cd go-ethereum && make geth
github.com/naoina/go-stringutil
github.com/naoina/toml/ast
github.com/naoina/toml
github.com/ethereum/go-ethereum/internal/jsre
github.com/ethereum/go-ethereum/eth/tracers/js
github.com/ethereum/go-ethereum/console
github.com/ethereum/go-ethereum/cmd/geth
Done building.
Run "./build/bin/geth" to launch geth.
出现 Run "./build/bin/geth" to launch geth. 就说明成功了
4、配置环境变量
export PATH=$PATH:/root/go-ethereum/build/bin
5、验证成功
执行命令
geth version
输出结果:
代码语言:javascript复制Geth
Version: 1.10.20-unstable
Git Commit: c7f485d9e5b9ffe125d59495da3a13e1f66a24c9
Git Commit Date: 20220626
Architecture: amd64
Go Version: go1.17.2
Operating System: linux
GOPATH=/www/wwwroot/gopath
GOROOT=/root/.go/go