Go-Ethereum

go lang 安裝錯誤 - raspberrypi

  • January 4, 2018

我需要在 raspberrypi 中創建 privatenet 並安裝 go1.9。複製geth,提取它。傳遞“make geth”命令時,出現以下錯誤。請幫幫我

github.com/ethereum/go-ethereum/vendor/gopkg.in/olebedev/go-duktape.v3
# github.com/ethereum/go-ethereum/dashboard
fatal error: runtime: out of memory

runtime stack:
# github.com/ethereum/go-ethereum/vendor/gopkg.in/olebedev/go-
duktape.v3
In file included from vendor/gopkg.in/olebedev/go-
duktape.v3/api.go:7:0:
vendor/gopkg.in/olebedev/go-duktape.v3/api.go: In function 
‘_duk_error’:
vendor/gopkg.in/olebedev/go-duktape.v3/duktape.h:510:127: warning: 
right-hand operand of comma expression has no effect [-Wunused-value]
(duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) 
(DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), 
(duk_ret_t) 0)


vendor/gopkg.in/olebedev/go-duktape.v3/api.go:153:2: note: in 
expansion of macro ‘duk_error’
duk_error(ctx, err_code, "%s", str);

# github.com/ethereum/go-ethereum/vendor/gopkg.in/olebedev/go-
duktape.v3
vendor/gopkg.in/olebedev/go-duktape.v3/duktape.go:119: cannot use fn 
(type func(*Context) int) as type func(*Context) uint in argument to 
d.PushGoFunction
vendor/gopkg.in/olebedev/go-duktape.v3/duktape.go:129: cannot use fn 
(type func(*Context) uint) as type func(*Context) int in argument to 
d.context.fnIndex.add
vendor/gopkg.in/olebedev/go-duktape.v3/duktape.go:132: constant 
18446744073709551615 overflows int64
util.go:45: exit status 2
exit status 1
Makefile:15: recipe for target 'geth' failed
make: *** [geth] Error 1

github 上的源儲存庫中記錄了一個修復程序。正如建議的那樣,升級到 1.9.2 為我解決了這個問題。

引用自:https://ethereum.stackexchange.com/questions/34890