CentOS7编译go-ethernum源代码

安装go开发语言

yum install -y golang

安装libiconv

mkdir 编译目录
cd 编译目录
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.15.tar.gz
tar -zxvf libiconv-1.14.tar.gz
cd libiconv-1.15
./configure 
make
make install

安装下载go-ethernum源代码

mkdir 编译目录
cd 编译目录
git clone https://github.com/ethereum/go-ethereum.git
cd go-ethernum

make编译

./make all
编译报错:
	vendor/github.com/karalabe/hid/hidapi/libusb/hid.c:444: undefined reference to `libiconv_open'
处理办法(https://github.com/ethereum/go-ethereum/issues/15533):
	mv /usr/local/include/iconv.h /usr/local/include/iconv.h.back

猜你喜欢

转载自blog.csdn.net/qq_28076275/article/details/84727211