mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 23:07:59 +01:00
Merge bitcoin/bitcoin#24658: doc: mention that BDB is for the legacy wallet in build-netbsd.md
7ac7198bbd
doc: mention that BDB is for the legacy wallet in build-netbsd.md (fanquake) Pull request description: Re-order legacy and descriptor wallet section. Add an additional configure example. NetBSD version of #23446. ACKs for top commit: shaavan: ACK7ac7198bbd
Tree-SHA512: 5c8218424a6b12e9eee00b44dd93f9fe95fd9afa468563167feb255663720a84b55e75850985cfae3ca288a6a76e17c00ccce60b8180f92875eeaee2c9afa843
This commit is contained in:
commit
7d0e42abce
1 changed files with 25 additions and 12 deletions
|
@ -27,15 +27,33 @@ git clone https://github.com/bitcoin/bitcoin.git
|
||||||
|
|
||||||
See [dependencies.md](dependencies.md) for a complete overview.
|
See [dependencies.md](dependencies.md) for a complete overview.
|
||||||
|
|
||||||
### Building BerkeleyDB
|
### Building Bitcoin Core
|
||||||
|
|
||||||
BerkeleyDB is only necessary for the wallet functionality. To skip this, pass
|
**Important**: Use `gmake` (the non-GNU `make` will exit with an error).
|
||||||
`--disable-wallet` to `./configure` and skip to the next section.
|
|
||||||
|
#### With descriptor wallet:
|
||||||
|
|
||||||
|
The descriptor wallet uses `sqlite3`. You can install it using:
|
||||||
|
```bash
|
||||||
|
pkgin install sqlite3
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./autogen.sh
|
||||||
|
./configure --with-gui=no --without-bdb \
|
||||||
|
CPPFLAGS="-I/usr/pkg/include" \
|
||||||
|
LDFLAGS="-L/usr/pkg/lib" \
|
||||||
|
BOOST_CPPFLAGS="-I/usr/pkg/include" \
|
||||||
|
MAKE=gmake
|
||||||
|
```
|
||||||
|
|
||||||
|
#### With legacy wallet:
|
||||||
|
|
||||||
|
BerkeleyDB is use for legacy wallet functionality.
|
||||||
|
|
||||||
It is recommended to use Berkeley DB 4.8. You cannot use the BerkeleyDB library
|
It is recommended to use Berkeley DB 4.8. You cannot use the BerkeleyDB library
|
||||||
from ports, for the same reason as boost above (g++/libstd++ incompatibility).
|
from ports.
|
||||||
If you have to build it yourself, you can use [the installation script included
|
You can use [the installation script included in contrib/](/contrib/install_db4.sh) like so:
|
||||||
in contrib/](/contrib/install_db4.sh) like so:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
./contrib/install_db4.sh `pwd`
|
./contrib/install_db4.sh `pwd`
|
||||||
|
@ -47,11 +65,6 @@ from the root of the repository. Then set `BDB_PREFIX` for the next section:
|
||||||
export BDB_PREFIX="$PWD/db4"
|
export BDB_PREFIX="$PWD/db4"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Building Bitcoin Core
|
|
||||||
|
|
||||||
**Important**: Use `gmake` (the non-GNU `make` will exit with an error).
|
|
||||||
|
|
||||||
With wallet:
|
|
||||||
```bash
|
```bash
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
./configure --with-gui=no CPPFLAGS="-I/usr/pkg/include" \
|
./configure --with-gui=no CPPFLAGS="-I/usr/pkg/include" \
|
||||||
|
@ -62,7 +75,7 @@ With wallet:
|
||||||
MAKE=gmake
|
MAKE=gmake
|
||||||
```
|
```
|
||||||
|
|
||||||
Without wallet:
|
#### Without wallet:
|
||||||
```bash
|
```bash
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
./configure --with-gui=no --disable-wallet \
|
./configure --with-gui=no --disable-wallet \
|
||||||
|
|
Loading…
Add table
Reference in a new issue