Nearly all Linux versions support LBTC full nodes’ compilation and LBTC officially used Ubuntu 16.04 for compiling test.
# will be opensourced
These dependencies are required:
|libssl||Crypto||Random Number Generation, Elliptic Curve Cryptography|
|libboost||Utility||Library for threading, data structures, etc|
|libevent||Networking||OS independent asynchronous networking|
|miniupnpc||UPnP Support||Firewall-jumping support|
|libdb4.8||Berkeley DB||Wallet storage (only needed when wallet enabled)|
|qt||GUI||GUI toolkit (only needed when GUI enabled)|
|protobuf||Payments in GUI||Data interchange format used for payment protocol (only needed when GUI enabled)|
|libqrencode||QR codes in GUI||Optional for generating QR codes (only needed when GUI enabled)|
|libzmq3||ZMQ notification||Optional, allows generating ZMQ notifications (requires ZMQ version >= 4.x)|
C++ compilers are memory-hungry. It is recommended to have at least 1 GB of memory available when compiling Bitcoin Core. With 512MB of memory or less compilation will take much longer due to swap thrashing.
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils
On at least Ubuntu 14.04+ and Debian 7+ there are generic names for the individual boost development packages, so the following can be used to only install necessary parts of boost:
sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev
If that doesn’t work, you can install all boost development packages with:
sudo apt-get install libboost-all-dev
BerkeleyDB is required for the wallet. db4.8 packages are available here.
You can add the repository and install using the following commands:
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev
Ubuntu and Debian have their own libdb-dev and libdb++-dev packages, but these will install
BerkeleyDB 5.1 or later, which break binary wallet compatibility with the distributed executables which
are based on BerkeleyDB 4.8. If you do not care about wallet compatibility,
--with-incompatible-bdb to configure.
sudo apt-get install libzmq3-dev (provides ZMQ API 4.x)
The release is built with GCC and then “strip bitcoind” to strip the debug symbols, which reduces the executable size by about 90%.