bitcoin源码win10 Ubuntu编译笔记(二)configure:error: libdb_cxx headers missing

废话不多说,继续下载,逐句执行

sudo apt install g++-mingw-w64-x86-64

sudo apt install software-properties-common

    sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu zesty universe"

    sudo apt update

    sudo apt upgrade

    sudo update-alternatives --config x86_64-w64-mingw32-g++ # Set the default mingw32 g++ compiler option to posix.

这时候需要找个网好点的地方,下载比特币源码,中断需重新下,不像上面的可以续传

git clone https://github.com/bitcoin/bitcoin.git

下载好后

cd  ~

ll


可以看到bitcoin文件夹已经建立

cd bitcoin/

cd depends make HOST=x86_64-w64-mingw32

cd ..

./autogen.sh # not required when building from tarball

CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site ./configure --prefix=/

make

configure:error: libdb_cxx headers missing, Bitcoin Corerequiresthis libraryforwallet functionality (--disable-wallet todisablewallet functionality)

这个错误解决请移步

链接:https://www.jianshu.com/p/6827e958e47f

cd bitcoin

./configure --with-incompatible-bdb LDFLAGS="-L/home/theusername/bitcoin/db4/lib/" CPPFLAGS="-I/home/theusername/bitcoin/db4/include/"

make


安装过程

安装完成了验证下

which bitcoind

 which bitcoin-cli

两条命令 均会返回一个具体路径 

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容