@@ -27,15 +27,33 @@ git clone https://github.com/bitcoin/bitcoin.git
27
27
28
28
See [ dependencies.md] ( dependencies.md ) for a complete overview.
29
29
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
+ ```
31
49
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.
34
53
35
54
It 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:
39
57
40
58
``` bash
41
59
./contrib/install_db4.sh ` pwd`
@@ -47,11 +65,6 @@ from the root of the repository. Then set `BDB_PREFIX` for the next section:
47
65
export BDB_PREFIX=" $PWD /db4"
48
66
```
49
67
50
- ### Building Bitcoin Core
51
-
52
- ** Important** : Use ` gmake ` (the non-GNU ` make ` will exit with an error).
53
-
54
- With wallet:
55
68
``` bash
56
69
./autogen.sh
57
70
./configure --with-gui=no CPPFLAGS=" -I/usr/pkg/include" \
@@ -62,7 +75,7 @@ With wallet:
62
75
MAKE=gmake
63
76
```
64
77
65
- Without wallet:
78
+ #### Without wallet:
66
79
``` bash
67
80
./autogen.sh
68
81
./configure --with-gui=no --disable-wallet \
0 commit comments