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