編譯geth報錯的解決方法 make: *** [geth] 錯誤 1
阿新 • • 發佈:2018-03-29
over lang oot ethereum pkg linux www http 資料
# github.com/ethereum/go-ethereum/vendor/gopkg.in/olebedev/go-duktape.v3
vendor/gopkg.in/olebedev/go-duktape.v3/duktape.go:133: constant 18446744073709551615 overflows int64
util.go:45: exit status 2
exit status 1
make: *** [geth] 錯誤 1 https://www.golangtc.com/download
在centos下安裝了go1.9.1版本,編譯go-ethereum時報錯:
[root@localhost go-ethereum]# make geth
build/env.sh go run build/ci.go install ./cmd/geth
>>> /usr/local/go/bin/go install -ldflags -X main.gitCommit=a095b84ec5a35cb3432380cc677d4e244b4a137f -v ./cmd/geth
github.com/ethereum/go-ethereum/vendor/gopkg.in/olebedev/go-duktape.v3
# github.com/ethereum/go-ethereum/vendor/gopkg.in/olebedev/go-duktape.v3
vendor/gopkg.in/olebedev/go-duktape.v3/duktape.go:133: constant 18446744073709551615 overflows int64
util.go:45: exit status 2
exit status 1
make: *** [geth] 錯誤 1
弄了很久,百度查了很多資料都沒解決。在github上的網友說升到1.9.2版本的go能解決,驗證後果然搞定了!
go1.9.2.linux-amd64.tar.gz官網下載地址:
安裝go過程:
1. tar -xzf go1.9.2.linux-amd64.tar.gz -C /usr/local/
2. vim /etc/profile
export GOPATH=/usr/local/go
export PATH=$GOPATH/bin:$PATH
保存退出
source /etc/profile
3.驗證:
go version
最後重新編譯go-ethereum:
cd go-ethereum
make geth
搞定。
編譯geth報錯的解決方法 make: *** [geth] 錯誤 1