I. Installing the development environment
sudoapt-Get updatesudoApt-getInstallBuild-essential Libtool Autotools-dev autoconfPkg-configlibssl-DevsudoApt-getInstalllibboost-all-DevsudoApt-getInstallLibqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compilersudoApt-getInstalllibqrencode-DevsudoApt-getInstalllibminiupnpc-DevsudoApt-getInstallGit
Two. Download the source code
mkdir btcoingit clone https: // Github.com/bitcoin/bitcoin.git
Three. Compiling
./autogen. SH . /Configuremake doinstall # Optional
Four. Questions
1. Configure step tip error:libevent not found.
sudo Install Libevent-dev
2. Configure step hint Error:found Berkeley DB other than 4.8, required for portable wallets (--with-incompatible-bdb to ignore or--disable-wallet to disable wallet functionality)
wget http://download.oracle.com/berkeley-db/db-4.8.30.nc.tar.gzcd db-4.8. . nc/CD Build_unix/.. /dist/configure--enable-cxx--disable-shared--with-pic--prefix=/usr/localsudo make Install
The online tutorial is very messy, specifically encountered problems, you can refer to the doc file directory inside the BUILD-XX documentation, very detailed.
Ubuntu 17 Compilation Btcoin