Go-ethereum: Geth does not compile in centos

Created on 21 Nov 2017  路  3Comments  路  Source: ethereum/go-ethereum

Hi there,

System information

Geth version: geth v1.7.2
OS & Version: Centos 6.5
Commit hash : 1db4ecdc0

Expected behaviour

compile

Actual behaviour

Does not compile

Steps to reproduce the behaviour

I have installed libiconv-1.15
but

````
make geth
build/env.sh go run build/ci.go install ./cmd/geth

/usr/local/go/bin/go install -ldflags -X main.gitCommit=1db4ecdc0b9e828ff65777fb466fc7c1d04e0de9 -v ./cmd/geth
github.com/ethereum/go-ethereum/vendor/github.com/karalabe/hid

github.com/ethereum/go-ethereum/vendor/github.com/karalabe/hid

/tmp/go-build267146492/github.com/ethereum/go-ethereum/vendor/github.com/karalabe/hid/_obj/hid_enabled.cgo2.o: In function get_usb_string': hid_enabled.cgo2.c:(.text+0x94d4): undefined reference tolibiconv_open'
hid_enabled.cgo2.c:(.text+0x9523): undefined reference to libiconv' hid_enabled.cgo2.c:(.text+0x954f): undefined reference tolibiconv_close'
collect2: error: ld returned 1 exit status
util.go:44: exit status 2
exit status 1
make: * [geth] Error 1
````

Most helpful comment

rm /usr/local/include/iconv.h

fixed this.

All 3 comments

rm /usr/local/include/iconv.h

fixed this.

mv /usr/local/include/iconv.h /usr/local/include/iconv.h.back better

wonderful

Was this page helpful?
0 / 5 - 0 ratings