廢話不多說(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è)具體路徑?