Skip to content

Commit 901baf2

Browse files
committed
doc: update FreeBSD build guide for 12.0
1 parent c576979 commit 901baf2

File tree

1 file changed

+26
-30
lines changed

1 file changed

+26
-30
lines changed

doc/build-freebsd.md

Lines changed: 26 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FreeBSD build guide
22
======================
3-
(updated for FreeBSD 11.1)
3+
(updated for FreeBSD 12.0)
44

55
This guide describes how to build bitcoind and command-line utilities on FreeBSD.
66

@@ -10,55 +10,51 @@ This guide does not contain instructions for building the GUI.
1010

1111
You will need the following dependencies, which can be installed as root via pkg:
1212

13-
```
13+
```shell
1414
pkg install autoconf automake boost-libs git gmake libevent libtool openssl pkgconf
15+
16+
git clone https://github.com/bitcoin/bitcoin.git
1517
```
1618

1719
In order to run the test suite (recommended), you will need to have Python 3 installed:
1820

19-
```
21+
```shell
2022
pkg install python3
2123
```
2224

23-
For the wallet (optional):
24-
```
25-
./contrib/install_db4.sh `pwd`
26-
export BDB_PREFIX="$PWD/db4"
27-
```
28-
2925
See [dependencies.md](dependencies.md) for a complete overview.
3026

31-
Download the source code:
32-
```
33-
git clone https://github.com/bitcoin/bitcoin
27+
### Building BerkeleyDB
28+
29+
BerkeleyDB is only necessary for the wallet functionality. To skip this, pass
30+
`--disable-wallet` to `./configure` and skip to the next section.
31+
32+
```shell
33+
./contrib/install_db4.sh `pwd`
34+
export BDB_PREFIX="$PWD/db4"
3435
```
3536

3637
## Building Bitcoin Core
3738

3839
**Important**: Use `gmake` (the non-GNU `make` will exit with an error):
3940

40-
```
41+
With wallet:
42+
```shell
4143
./autogen.sh
42-
43-
./configure # to build with wallet OR
44-
./configure --disable-wallet # to build without wallet
44+
./configure --with-gui=no \
45+
BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" \
46+
BDB_CFLAGS="-I${BDB_PREFIX}/include"
4547
```
4648

47-
followed by either:
48-
49-
```
50-
gmake
49+
Without wallet:
50+
```shell
51+
./autogen.sh
52+
./configure --with-gui=no --disable-wallet
5153
```
5254

53-
to build without testing, or
55+
followed by:
5456

57+
```shell
58+
gmake # use -jX here for parallelism
59+
gmake check # Run tests if Python 3 is available
5560
```
56-
gmake check
57-
```
58-
59-
to also run the test suite (recommended, if Python 3 is installed).
60-
61-
*Note on debugging*: The version of `gdb` installed by default is [ancient and considered harmful](https://wiki.freebsd.org/GdbRetirement).
62-
It is not suitable for debugging a multi-threaded C++ program, not even for getting backtraces. Please install the package `gdb` and
63-
use the versioned gdb command (e.g. `gdb7111`).
64-

0 commit comments

Comments
 (0)