bitcoin编译问题解决

# ./autogen.sh

# ./configure --with-incompatible-bdb

# make

 

安装autoconf-2.69,automake-1.12,libtool-2.4.6,pkg-config-0.29.2,boost_1_55_0

 

问题1:configure: error: PKG_PROG_PKG_CONFIG macro not foundPlease install pkg-config and re-run autogen.sh

#pkg-config --version  查看版本号为0.23

升级到0.29.2,重新执行autogen.sh,configure后问题解决

 

问题2:configure: error: libdb_cxx headers missing, Bitcoin Core requires this library for wallet functionality (--disable-wallet to disable wallet functionality)

安装lbdb

# wget 'http://download.oracle.com/berkeley-db/db-5.1.29.NC.tar.gz'

# tar -xzf db-5.1.29.NC.tar.gz cd db-5.1.29.NC/build_unix/

# ../dist/configure --enable-cxx --disable-shared --with-pic --prefix=/usr/local make install

#./configure --with-incompatible-bdb

问题3:configure: error: Could not find a version of the boost_system library

安装更高的版本boost-devel

# wget -O boost_1_55_0.tar.bz2 http://downloads.sourceforge.net/project/boost/boost/1.55.0/boost_1_55_0.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fboost%2Ffiles%2Fboost%2F1.55.0%2F&ts=1385953406&use_mirror=softlayer-ams

# tar jxvf boost_1_55_0.tar.bz2

# cd boost_1.55.0

# ./bootstrap.sh

# ./b2

# ./b2 install

问题4:在已经安装openssl和openssl-devel情况下,仍然存在checking for libssl... no configure: error: openssl not found

原因是libssl.pc文件在目录 /usr/lib64/pkgconfig下,执行

# cp /usr/lib64/pkgconfig/libssl.pc /usr/local/lib/pkgconfig/

# export PKG_CONFIG_PATH=/usr/lib/pkgconfig/:/usr/local/lib/pkgconfig/:/usr/lib64/pkgconfig

问题5:checking for libevent... no configure: error: libevent not found

# wget https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz

# 编译安装

该问题本质和问题4类似,通过yum install安装的libevent并没有文件libevent.pc,所以pkg-config找不到对应的库文件

问题6:tmp/ccuyuMIK.s:93510: Error: no such instruction: `vextracti128 $0x1,%ymm0,%xmm1'

as版本太低,更新as到2.31版本即可

# wget https://ftp.gnu.org/gnu/binutils/binutils-2.31.tar.gz

# tar zxvf binutils-2.31.tar.gz

# cd binutils-2.31
# ./configure & make & make install

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值