Skip to content

Commit 9bbed14

Browse files
Update build-unix.md
Add additional information for building on Debian 10/Raspberry Pi.
1 parent d66f81a commit 9bbed14

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

doc/build-unix.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,16 @@ You can add the repository and install using the following commands:
109109
sudo apt-get update
110110
sudo apt-get install libdb4.8-dev libdb4.8++-dev
111111

112-
**For Ubuntu 20.04+**
112+
**For Ubuntu 20.04+ or Debian 10/Raspberry Pi**
113113

114114
For Ubuntu 20.04+ users the db4.8 is not available on the official PPA. Use the script in contrib/install_db4.sh
115115
to compile and install db4.8. You can use the script in your build location. For example if your build
116-
location is Gridcoin-Research/ then `./contrib/install_db4.sh $PWD`
116+
location is Gridcoin-Research/ then `./contrib/install_db4.sh $PWD`. Once complete, when running `./configure`, you
117+
must tell it about the location of the compiled db4.8 which you can do with the export line given when install_db4.sh
118+
is finished in the form of `export BDB_PREFIX='/compiled/location'`. Then run:
119+
`./configure BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include"`
120+
followed by whatever other flags you want such as --without-gui.
121+
117122

118123
Ubuntu and Debian have their own libdb-dev and libdb++-dev packages, but these will install
119124
BerkeleyDB 5.1 or later, which break binary wallet compatibility with the distributed executables which

0 commit comments

Comments
 (0)