Skip to content

Commit c572eae

Browse files
committed
update the freebsd build doc to reflect recent changes to DB4 install process
1 parent 65de8ee commit c572eae

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
@@ -36,13 +36,30 @@ pkg install sqlite3
3636
```
3737

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

42-
```bash
43-
pkg install db5
4444
```
45-
---
45+
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
46+
```
47+
48+
When the build is complete, the Berkeley DB installation location will be displayed:
49+
50+
```
51+
to: /path/to/bitcoin/depends/x86_64-unknown-freebsd[release-number]
52+
```
53+
54+
Finally, set `BDB_PREFIX` to this path according to your shell:
55+
56+
```
57+
csh: setenv BDB_PREFIX [path displayed above]
58+
```
59+
60+
```
61+
sh/bash: export BDB_PREFIX=[path displayed above]
62+
```
4663

4764
#### GUI Dependencies
4865
###### Qt5
@@ -91,12 +108,12 @@ This explicitly enables the GUI and disables legacy wallet support, assuming `sq
91108

92109
##### Descriptor & Legacy Wallet. No GUI:
93110
This enables support for both wallet types and disables the GUI, assuming
94-
`sqlite3` and `db5` are both installed.
111+
`sqlite3` and `db4` are both installed.
95112
```bash
96113
./autogen.sh
97-
./configure --with-gui=no --with-incompatible-bdb \
98-
BDB_LIBS="-ldb_cxx-5" \
99-
BDB_CFLAGS="-I/usr/local/include/db5" \
114+
./configure --with-gui=no \
115+
BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" \
116+
BDB_CFLAGS="-I${BDB_PREFIX}/include" \
100117
MAKE=gmake
101118
```
102119

0 commit comments

Comments
 (0)