参考:
一、安装第三方库:
1.安装libssl,libevent,libboost库等:
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils
sudoapt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev
2.通过添加仓库安装BerkeleyDB:
sudoapt-get install software-properties-common
sudoadd-apt-repository ppa:bitcoin/bitcoin
sudoapt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev
3.安装UPnP库:
sudo apt-get install libminiupnpc-dev
4.安装ZMQ库
sudo apt-get install libzmq3-dev
5. 安装QT5库
sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler
6. 安装二维码库
sudo apt-get install libqrencode-dev
二、编译安装Bitcoin Core:
cd bitcoin //进入bitcoin源码目录,bitcoin源码去github下载
./autogen.sh
./configure
make
make install
三、启动Bitcoin Core:
打开终端执行 bitcoin-qt