@@ -27,15 +27,33 @@ git clone https://github.com/bitcoin/bitcoin.git
2727
2828See [ dependencies.md] ( dependencies.md ) for a complete overview.
2929
30- ### Building BerkeleyDB
30+ ### Building Bitcoin Core
31+
32+ ** Important** : Use ` gmake ` (the non-GNU ` make ` will exit with an error).
33+
34+ #### With descriptor wallet:
35+
36+ The descriptor wallet uses ` sqlite3 ` . You can install it using:
37+ ``` bash
38+ pkgin install sqlite3
39+ ```
40+
41+ ``` bash
42+ ./autogen.sh
43+ ./configure --with-gui=no --without-bdb \
44+ CPPFLAGS=" -I/usr/pkg/include" \
45+ LDFLAGS=" -L/usr/pkg/lib" \
46+ BOOST_CPPFLAGS=" -I/usr/pkg/include" \
47+ MAKE=gmake
48+ ```
3149
32- BerkeleyDB is only necessary for the wallet functionality. To skip this, pass
33- ` --disable-wallet ` to ` ./configure ` and skip to the next section.
50+ #### With legacy wallet:
51+
52+ BerkeleyDB is use for legacy wallet functionality.
3453
3554It is recommended to use Berkeley DB 4.8. You cannot use the BerkeleyDB library
36- from ports, for the same reason as boost above (g++/libstd++ incompatibility).
37- If you have to build it yourself, you can use [ the installation script included
38- in contrib/] ( /contrib/install_db4.sh ) like so:
55+ from ports.
56+ You can use [ the installation script included in contrib/] ( /contrib/install_db4.sh ) like so:
3957
4058``` bash
4159./contrib/install_db4.sh ` pwd`
@@ -47,11 +65,6 @@ from the root of the repository. Then set `BDB_PREFIX` for the next section:
4765export BDB_PREFIX=" $PWD /db4"
4866```
4967
50- ### Building Bitcoin Core
51-
52- ** Important** : Use ` gmake ` (the non-GNU ` make ` will exit with an error).
53-
54- With wallet:
5568``` bash
5669./autogen.sh
5770./configure --with-gui=no CPPFLAGS=" -I/usr/pkg/include" \
@@ -62,7 +75,7 @@ With wallet:
6275 MAKE=gmake
6376```
6477
65- Without wallet:
78+ #### Without wallet:
6679``` bash
6780./autogen.sh
6881./configure --with-gui=no --disable-wallet \
0 commit comments