废话不多说,继续下载,逐句执行
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
两条命令 均会返回一个具体路径