编译bitcoin比特币客户端 for Ubuntu16.04

我遇到了两个不太容易解决的问题。
问题一:


checking for Berkeley DB C++ headers... default
configure: error: Found Berkeley DB other than 4.8, required for portable wallets (--with-incompatible-bdb to ignore or --disable-wallet to disable wallet functionality)

这个问题就是没有找到Berkeley DB 4.8 版本,我们需要对这个版本的Berkeley DB进行安装。
http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index-082944.html
这里可以知道到4.8版本。或者百度搜索“Berkeley DB”也可也找到下载位置,它已经被oracle收购了。
下载后解压进入源码目录

cd db-4.8.30/build_unix
../dist/configure --enable-cxx
make -j8
sudo make install

默认安装路径是/usr/local/BerkeleyDB.4.8/这里。
下面就是最重要的一步了,声明BerkeleyDB.4.8的位置:

export BDB_CFLAGS=/usr/local/BerkeleyDB.4.8/

这样在configure的时候,就可以找到BerkeleyDB.4.8了。

问题二:

checking for boostlib >= 1.47.0... yes
checking whether the Boost::System library is available... yes
checking for exit in -lboost_system... yes
checking whether the Boost::Filesystem library is available... yes
checking for exit in -lboost_filesystem... yes
checking whether the Boost::Program_Options library is available... yes
configure: error: Could not link against boost_filesystem !

提示的是“boost_filesystem”其实不是它,而是没找到“ boost_program_options”你需要

sudo apt-get install libboost-program-options-dev

安装完成,就可以通过这个问题,遇到下一个问题了,下面的问题,提示比较明确不太容易被卡住。

猜你喜欢

转载自blog.csdn.net/kingroc/article/details/79351210