The compilation environment is to install CENTOS7 mirrors in Vmware12, choose to create a virtual machine before adding a mirror, and you need to check the necessary development environment and tool options when adding mirrors.
1. Download Bitcoin source
git clone https://github.com/bitcoin/bitcoin.git
The Official document HTTPS://GITHUB.COM/BITCOIN/BITCOIN/BLOB/MASTER/DOC/BUILD-UNIX.MD has detailed compilation and dependency instructions
2. Obtaining dependent dependencies
According to the official documentation above, only the necessary dependencies need to be processed, but the lack of three GUI dependencies in the red box results in a lack of bitcoin-qt after compilation.
Install Libtool, libboost, Libevent, QT, Protobuf, Libqrencode, Libssl
Yum install-y boost-devel qt-devel protobuf-devel qrencode-devel libevent-devel libtool openssl-devel
Install LIBDB
wget ' http://download.oracle.com/berkeley-db/db-5.1.29.NC.tar.gz '
Echo ' 08238e59736d1aacdd47cfb8e68684c695516c37f4fbe1b8267dde58dc3a576c db-5.1.29.nc.tar.gz ' | Sha256sum-c
Tar-xzf db-5.1.29.nc.tar.gz
CD db-5.1.29.nc/build_unix/
.. /dist/configure--enable-cxx--disable-shared--with-pic--prefix=/usr/local
Make install
3. Compile Bitcoin
./autogen.sh
Because the previous LIBDB is installed with version 5.1,/configure add--with-incompatible-bdb ignore libdb version differences
./configure--WITH-INCOMPATIBLE-BDB
Make
Make install# Optional
After compiling the installation, in/usr/local/bin, there are compiled binary modules bitcoin-cli bitcoind bitcoin-qt bitcoin-tx