bitcoin源碼win10 Ubuntu編譯筆記(二)configure:error: libdb_cxx headers missing

廢話不多說(shuō),繼續(xù)下載,逐句執(zhí)行

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.

這時(shí)候需要找個(gè)網(wǎng)好點(diǎn)的地方,下載比特幣源碼,中斷需重新下,不像上面的可以續(xù)傳

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

下載好后

cd ?~

ll


可以看到bitcoin文件夾已經(jīng)建立

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)

這個(gè)錯(cuò)誤解決請(qǐng)移步

鏈接:http://www.itdecent.cn/p/6827e958e47f

cd bitcoin

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

make


安裝過程

安裝完成了驗(yàn)證下

which bitcoind

?which bitcoin-cli

兩條命令 均會(huì)返回一個(gè)具體路徑?

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容