zoukankan      html  css  js  c++  java
  • 编译bitcoin比特币客户端

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

    
    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

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

  • 相关阅读:
    生活重心
    做自己才对,想多只会徒增烦恼
    列下计划,一个个实现吧
    公司搬迁
    限制文件的类型
    总结
    mvc mvp mvvm区别
    sessionStorage
    localStorage点击次数存储
    2016.09.01 html5兼容
  • 原文地址:https://www.cnblogs.com/timlong/p/9539014.html
Copyright © 2011-2022 走看看