Skip to content

Commit 2d2f220

Browse files
committed
merge bitcoin#26773: FreeBSD build doc updates to reflect removal of install_db4.sh
1 parent 12e04f5 commit 2d2f220

File tree

1 file changed

+26
-9
lines changed

1 file changed

+26
-9
lines changed

doc/build-freebsd.md

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,30 @@ pkg install sqlite3
4141
```
4242

4343
###### Legacy Wallet Support
44-
`db5` is only required to support legacy wallets.
45-
Skip if you don't intend to use legacy wallets.
44+
BerkeleyDB is only required if legacy wallet support is required.
45+
46+
It is required to use Berkeley DB 4.8. You **cannot** use the BerkeleyDB library
47+
from ports. However, you can build DB 4.8 yourself [using depends](/depends).
4648

47-
```bash
48-
pkg install db5
4949
```
50-
---
50+
gmake -C depends NO_BOOST=1 NO_LIBEVENT=1 NO_QT=1 NO_SQLITE=1 NO_NATPMP=1 NO_UPNP=1 NO_ZMQ=1 NO_USDT=1
51+
```
52+
53+
When the build is complete, the Berkeley DB installation location will be displayed:
54+
55+
```
56+
to: /path/to/dash/depends/x86_64-unknown-freebsd[release-number]
57+
```
58+
59+
Finally, set `BDB_PREFIX` to this path according to your shell:
60+
61+
```
62+
csh: setenv BDB_PREFIX [path displayed above]
63+
```
64+
65+
```
66+
sh/bash: export BDB_PREFIX=[path displayed above]
67+
```
5168

5269
#### GUI Dependencies
5370
###### Qt5
@@ -96,12 +113,12 @@ This explicitly enables the GUI and disables legacy wallet support, assuming `sq
96113

97114
##### Descriptor & Legacy Wallet. No GUI:
98115
This enables support for both wallet types and disables the GUI, assuming
99-
`sqlite3` and `db5` are both installed.
116+
`sqlite3` and `db4` are both installed.
100117
```bash
101118
./autogen.sh
102-
./configure --with-gui=no --with-incompatible-bdb \
103-
BDB_LIBS="-ldb_cxx-5" \
104-
BDB_CFLAGS="-I/usr/local/include/db5" \
119+
./configure --with-gui=no \
120+
BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" \
121+
BDB_CFLAGS="-I${BDB_PREFIX}/include" \
105122
MAKE=gmake
106123
```
107124

0 commit comments

Comments
 (0)