# ./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 found. Please 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