Skip to content

Commit 4899fa3

Browse files
committed
doc: Update build instructions for Fedora
Fedora 33 requires adding the Cheese third-party repo to install libdb4-devel and libdb4-cxx-devel packages.
1 parent ad89812 commit 4899fa3

File tree

1 file changed

+40
-13
lines changed

1 file changed

+40
-13
lines changed

doc/build-unix.md

Lines changed: 40 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -84,23 +84,22 @@ Now, you can either build from self-compiled [depends](/depends/README.md) or in
8484

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

87-
BerkeleyDB is required for the wallet.
87+
Berkeley DB is required for the wallet.
8888

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

94-
Otherwise, you can build from self-compiled `depends` (see above).
94+
Otherwise, you can build Berkeley DB [yourself](#berkeley-db).
9595

96-
SQLite is required for the wallet:
96+
SQLite is required for the descriptor wallet:
9797

9898
sudo apt install libsqlite3-dev
9999

100-
To build Bitcoin Core without wallet, see [*Disable-wallet mode*](/doc/build-unix.md#disable-wallet-mode)
100+
To build Bitcoin Core without wallet, see [*Disable-wallet mode*](#disable-wallet-mode)
101101

102-
103-
Optional port mapping libraries (see: `--with-miniupnpc`, and `--enable-upnp-default`, `--with-natpmp`, `--enable-natpmp-default`):
102+
Optional port mapping libraries (see: `--with-miniupnpc`, `--enable-upnp-default`, and `--with-natpmp`, `--enable-natpmp-default`):
104103

105104
sudo apt install libminiupnpc-dev libnatpmp-dev
106105

@@ -132,16 +131,43 @@ built by default.
132131

133132
Build requirements:
134133

135-
sudo dnf install gcc-c++ libtool make autoconf automake libevent-devel boost-devel libdb4-devel libdb4-cxx-devel python3
134+
sudo dnf install gcc-c++ libtool make autoconf automake python3
135+
136+
Now, you can either build from self-compiled [depends](/depends/README.md) or install the required dependencies:
137+
138+
sudo dnf install libevent-devel boost-devel
139+
140+
Berkeley DB is required for the wallet:
141+
142+
sudo dnf install libdb4-devel libdb4-cxx-devel
143+
144+
Newer Fedora releases, since Fedora 33, have only `libdb-devel` and `libdb-cxx-devel` packages, but these will install
145+
Berkeley DB 5.3 or later. This will break binary wallet compatibility with the distributed executables, which
146+
are based on Berkeley DB 4.8. If you do not care about wallet compatibility,
147+
pass `--with-incompatible-bdb` to configure.
148+
149+
Otherwise, you can build Berkeley DB [yourself](#berkeley-db).
150+
151+
SQLite is required for the descriptor wallet:
152+
153+
sudo dnf install sqlite-devel
154+
155+
To build Bitcoin Core without wallet, see [*Disable-wallet mode*](#disable-wallet-mode)
136156

137-
Optional port mapping libraries (see: `--with-miniupnpc`, and `--enable-upnp-default`, `--with-natpmp`, `--enable-natpmp-default`):
157+
Optional port mapping libraries (see: `--with-miniupnpc`, `--enable-upnp-default`, and `--with-natpmp`, `--enable-natpmp-default`):
138158

139159
sudo dnf install miniupnpc-devel libnatpmp-devel
140160

141161
ZMQ dependencies (provides ZMQ API):
142162

143163
sudo dnf install zeromq-devel
144164

165+
GUI dependencies:
166+
167+
If you want to build bitcoin-qt, make sure that the required packages for Qt development
168+
are installed. Qt 5 is necessary to build the GUI.
169+
To build without GUI pass `--without-gui`.
170+
145171
To build with Qt 5 you need the following:
146172

147173
sudo dnf install qt5-qttools-devel qt5-qtbase-devel
@@ -150,9 +176,8 @@ libqrencode (optional) can be installed with:
150176

151177
sudo dnf install qrencode-devel
152178

153-
SQLite can be installed with:
154-
155-
sudo dnf install sqlite-devel
179+
Once these are installed, they will be found by configure and a bitcoin-qt executable will be
180+
built by default.
156181

157182
Notes
158183
-----
@@ -193,7 +218,9 @@ like so:
193218

194219
from the root of the repository.
195220

196-
**Note**: You only need Berkeley DB if the wallet is enabled (see [*Disable-wallet mode*](/doc/build-unix.md#disable-wallet-mode)).
221+
Otherwise, you can build Bitcoin Core from self-compiled [depends](/depends/README.md).
222+
223+
**Note**: You only need Berkeley DB if the wallet is enabled (see [*Disable-wallet mode*](#disable-wallet-mode)).
197224

198225
Boost
199226
-----

0 commit comments

Comments
 (0)