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