BitcoinVB BitcoinVB
  • FAQ 
  • TESTNET 
  • ABOUT 
  • JOBS 
  • BOUNTY 
  • DOCUMENT 
  • COMMUNITY 
BitcoinVB BitcoinVB
BitcoinVB
  • FAQ 
  • TESTNET 
  • ABOUT 
  • JOBS 
  • BOUNTY 
  • DOCUMENT 
  • COMMUNITY 

UNIX BUILD NOTES

  • folder icon closed folder iconNote
  • folder icon closed folder iconTo Build
  • folder icon closed folder iconDependencies
  • folder icon closed folder iconMemory Requirements
  • folder icon closed folder iconLinux Distribution
  • folder icon closed folder iconFedora
  • folder icon closed folder iconMiniupnpc
  • folder icon closed folder iconLibnatpmp
  • folder icon closed folder iconBerkeley DB
  • folder icon closed folder iconBoost
  • folder icon closed folder iconSecurity
  • folder icon closed folder iconDisable-wallet mode
  • folder icon closed folder iconAdditional Configure Flags
  • folder icon closed folder iconArch Linux
  • folder icon closed folder iconARM Cross-compilation

UNIX BUILD NOTES

  • folder icon closed folder iconNote
  • folder icon closed folder iconTo Build
  • folder icon closed folder iconDependencies
  • folder icon closed folder iconMemory Requirements
  • folder icon closed folder iconLinux Distribution
  • folder icon closed folder iconFedora
  • folder icon closed folder iconMiniupnpc
  • folder icon closed folder iconLibnatpmp
  • folder icon closed folder iconBerkeley DB
  • folder icon closed folder iconBoost
  • folder icon closed folder iconSecurity
  • folder icon closed folder iconDisable-wallet mode
  • folder icon closed folder iconAdditional Configure Flags
  • folder icon closed folder iconArch Linux
  • folder icon closed folder iconARM Cross-compilation

Linux Distribution

Estimated reading :5 minutes 242 views

Linux Distribution Specific Instructions

Ubuntu & Debian

Dependency Build Instructions

Build requirements:
sudo apt-get install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3

Now, you can either build from self-compiled depends or install the required dependencies:

sudo apt-get install libevent-dev libboost-dev libboost-system-dev libboost-filesystem-dev libboost-test-dev

Berkeley DB is required for the wallet.

Ubuntu and Debian have their own libdb-dev and libdb++-dev packages, but these will install Berkeley DB 5.1 or later. This will break binary wallet compatibility with the distributed executables, which are based on BerkeleyDB 4.8. If you do not care about wallet compatibility, pass –with-incompatible-bdb to configure.

Otherwise, you can build Berkeley DB yourself.
SQLite is required for the descriptor wallet:
sudo apt install libsqlite3-dev

To build Bitcoin Core without wallet, see Disable-wallet mode

Optional port mapping libraries (see: –with-miniupnpc , –enable-upnp-default , and –with-natpmp , –enable-natpmp-default):

sudo apt install libsqlite3-dev

ZMQ dependencies (provides ZMQ API):
sudo apt-get install libzmq3-dev

GUI dependencies:

If you want to build bitcoin-qt, make sure that the required packages for Qt development are installed. Qt 5 is necessary to build the GUI. To build without GUI pass
–without-gui.

To build with Qt 5 you need the following:
sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools

Once these are installed, they will be found by configure and a bitcoin-qt executable will be built by default.

Previous
Memory Requirements
Next
Fedora

How can we help?

CONTENTS