Linux Distribution
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[direction] libdb-dev[/direction] and [direction]libdb++-dev [/direction]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[direction] –with-incompatible-bdb[/direction] 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: [direction]–with-miniupnpc[/direction], [direction]–enable-upnp-default[/direction], and [direction]–with-natpmp[/direction], [direction]–enable-natpmp-default):[/direction]
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
[direction]–without-gui.[/direction]
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.