第二节 geth安装错误解决
-
-bash: git: command not found
-> 解决:yum -y install git -
env GO111MODULE=on go run build/ci.go install ./cmd/geth
env: ‘go’: No such file or directory
make: *** [Makefile:16: geth] Error 127
-> 没有go环境安装go环境即可: yum -y install go -
go: github.com/Azure/azure-pipeline-go@v0.2.2: Get “https://proxy.golang.org/github.com/%21azure/azure-pipeline-go/@v/v0.2.2.mod”: dial tcp 216.58.200.241:443: i/o timeout
make: *** [Makefile:16: geth] Error
-> go被墙,需要代理:go env -w GOPROXY=https://goproxy.cn,direct -
reqid=11 t=“371.111µs” err=“etherbase missing: etherbase must be explicitly specified”
Error: etherbase missing: etherbase must be explicitly specified
miner.start()无法启动,没有账号,新建一个账号即可:
personal.newAccount(),然后输入密码:
-
miner.start() 返回null
此问题不影响,原因还没有确定的说法 -
constant 18446744073709551615 overflows int64 util.go:45: exit status 2
exit status 1
make: *** [geth] 错误 1
-> 删除旧版本go,重新下载 -
only replay-protected (EIP-155) transactions allowed over RPC
原因: EIP-155
解决: 签名的时候加上chainId即可。
TransactionEncoder.signMessage(rawTransaction, chainId, tm.getCredentials());
- fatal error: runtime: out of memory:
原因:out of memory
解决: geth启动的时候设置缓存 --cache 32 --trie-cache-gens 30