I want to use this guide to set up a headless bitcoin core full node and came across the line:
./configure CPPFLAGS="-I/usr/local/BerkeleyDB.4.8/include -O2" LDFLAGS="-L/usr/local/BerkeleyDB.4.8/lib" --disable-wallet
Unfortunately, the blog does not explain why he uses this.
First of all, I want to use my node with wallet. Second, I want to configure it to be usefull with a Raspberry Pi which has only 1GB of RAM and is also running other stuff, for example my Logitech Media Server for audio streaming. So I would like to make the node as lean as possible.
I know that I can use a config file for running
bitcoind with entries for upload limit and other setups. Do I need to run the skript also with options or are both setups interchangeably?
Also, I get the error
Found Berkeley DB other than 4.8 upon configure. Can Ihave a wallet with the BDB other than 4.8? The error message suggests, that 4.8 is needed for "portable wallets".
Here I found out about dependencies for the wallet and also about the option to built without GUI. Unfortunately, I cannot successfully
./configure with those neither, because BDB 4.8 is also not found this way.
However, to do it without GUI the option
--without-guican be used, which is very usefull.
EDIT: I encountered another problem while
/usr/bin/ld: cannot find -ldb_cxx-4.8 collect2: error: ld returned 1 exit status Makefile:4779: die Regel für Ziel „bitcoind“ scheiterte make: *** [bitcoind] Fehler 1 make: Verzeichnis „/home/pi/Downloads/bin/bitcoin/src“ wird verlassen Makefile:12975: die Regel für Ziel „all-recursive“ scheiterte make: *** [all-recursive] Fehler 1 make: Verzeichnis „/home/pi/Downloads/bin/bitcoin/src“ wird verlassen Makefile:776: die Regel für Ziel „all-recursive“ scheiterte make: *** [all-recursive] Fehler 1 19:07:10 [pi@raspberrypi bitcoin]$ /usr/bin/ld: cannot find -ldb_cxx-4.8 -bash: /usr/bin/ld:: Datei oder Verzeichnis nicht gefunden
Here I found an answer to a related error and I used
ld -ldb_cxx-4.8 --verbose and got this:
attempt to open //usr/local/lib/arm-linux-gnueabihf/libdb_cxx-4.8.so failed attempt to open //usr/local/lib/arm-linux-gnueabihf/libdb_cxx-4.8.a failed attempt to open //lib/arm-linux-gnueabihf/libdb_cxx-4.8.so failed attempt to open //lib/arm-linux-gnueabihf/libdb_cxx-4.8.a failed attempt to open //usr/lib/arm-linux-gnueabihf/libdb_cxx-4.8.so failed attempt to open //usr/lib/arm-linux-gnueabihf/libdb_cxx-4.8.a failed attempt to open //usr/local/lib/libdb_cxx-4.8.so failed attempt to open //usr/local/lib/libdb_cxx-4.8.a failed attempt to open //lib/libdb_cxx-4.8.so failed attempt to open //lib/libdb_cxx-4.8.a failed attempt to open //usr/lib/libdb_cxx-4.8.so failed attempt to open //usr/lib/libdb_cxx-4.8.a failed attempt to open //usr/arm-linux-gnueabihf/lib/libdb_cxx-4.8.so failed attempt to open //usr/arm-linux-gnueabihf/lib/libdb_cxx-4.8.a failed ld: cannot find -ldb_cxx-4.8
Now trying with
sudo apt-get install gcc-4.8 g++-4.8. That did not help.
Maybe I have to try this guide: https://medium.com/@meeDamian/bitcoin-full-node-on-rbp3-revised-88bb7c8ef1d1