Skip to content

Commit c932e0d

Browse files
committed
doc: Update wallet database installation guide for macOS
1 parent ee7b84e commit c932e0d

File tree

1 file changed

+25
-6
lines changed

1 file changed

+25
-6
lines changed

doc/build-osx.md

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Then install [Homebrew](https://brew.sh).
1919

2020
## Dependencies
2121
```shell
22-
brew install automake berkeley-db4 libtool boost miniupnpc pkg-config python qt libevent qrencode sqlite
22+
brew install automake libtool boost miniupnpc pkg-config python qt libevent qrencode
2323
```
2424

2525
If you run into issues, check [Homebrew's troubleshooting page](https://docs.brew.sh/Troubleshooting).
@@ -30,7 +30,22 @@ If you want to build the disk image with `make deploy` (.dmg / optional), you ne
3030
brew install librsvg
3131
```
3232

33-
## Berkeley DB
33+
The wallet support requires one or both of the dependencies ([*SQLite*](#sqlite) and [*Berkeley DB*](#berkeley-db)) in the sections below.
34+
To build Bitcoin Core without wallet, see [*Disable-wallet mode*](#disable-wallet-mode).
35+
36+
#### SQLite
37+
38+
Usually, macOS installation already has a suitable SQLite installation.
39+
Also, the Homebrew package could be installed:
40+
41+
```shell
42+
brew install sqlite
43+
```
44+
45+
In that case the Homebrew package will prevail.
46+
47+
#### Berkeley DB
48+
3449
It is recommended to use Berkeley DB 4.8. If you have to build it yourself,
3550
you can use [this](/contrib/install_db4.sh) script to install it
3651
like so:
@@ -41,7 +56,11 @@ like so:
4156

4257
from the root of the repository.
4358

44-
**Note**: You only need Berkeley DB if the wallet is enabled (see [*Disable-wallet mode*](/doc/build-osx.md#disable-wallet-mode)).
59+
Also, the Homebrew package could be installed:
60+
61+
```shell
62+
brew install berkeley-db4
63+
```
4564

4665
## Build Bitcoin Core
4766

@@ -72,14 +91,14 @@ from the root of the repository.
7291
make deploy
7392
```
7493

75-
## `disable-wallet` mode
94+
## Disable-wallet mode
7695
When the intention is to run only a P2P node without a wallet, Bitcoin Core may be
77-
compiled in `disable-wallet` mode with:
96+
compiled in disable-wallet mode with:
7897
```shell
7998
./configure --disable-wallet
8099
```
81100

82-
In this case there is no dependency on Berkeley DB 4.8 and SQLite.
101+
In this case there is no dependency on [*Berkeley DB*](#berkeley-db) and [*SQLite*](#sqlite).
83102

84103
Mining is also possible in disable-wallet mode using the `getblocktemplate` RPC call.
85104

0 commit comments

Comments
 (0)