dogecoin: src/db.h:15:20: fatal error: db_cxx.h: No such file or directory
While trying to compile dogecoin on my linux machine I’ve got this error, this is the full output:
$ qmake
Project MESSAGE: Building with UPNP support
Project MESSAGE: Building with UPNP supportRemoved plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
$ make
cd /home/peach/Programs/dogecoin; /bin/sh share/genbuild.sh /home/peach/Programs/dogecoin/build/build.h
g++ -c -pipe -fstack-protector -O2 -fdiagnostics-show-option -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -D_REENTRANT -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADS
AFE -DBOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN -D__NO_SYSTEM_INCLUDES -DUSE_UPNP=1 -DSTATICLIB -DHAVE_BUILD_INFO -DLINUX -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/s
hare/qt4/mkspecs/linux-g++ -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Isrc -Isrc/json -Isrc/qt -Ic:/deps -IC:/deps/boost -Ic:/deps/db/build_unix -Ic:/deps/ssl/incl
ude -Ibuild -Ibuild -o build/bitcoin.o src/qt/bitcoin.cpp
In file included from src/main.h:14:0,
from src/wallet.h:9,
from src/init.h:9,
from src/qt/bitcoin.cpp:11:
src/db.h:15:20: fatal error: db_cxx.h: No such file or directory
compilation terminated.
make: *** [build/bitcoin.o] Error 1
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Comments: 15
the system is Gentoo, with db-4.8 installed. It looks like qmake wasn’t able to find it. The only thing I’ve had to do is to add
-I/usr/include/db4.8
at the end of theINCPATH
in the Makefile generated by qmake.Hope this helps someone else. Wow.
On Ubuntu 10.04 I resolved this w/
sudo aptitude install libdb4.8+±dev
(after verifying that I’ve got BerkelyDB 4.8 installed)
jcomeau@amc:~/src/AmericanCoin/src$ sudo apt-get install libdb5.1+±dev
I had missed that in the build-unix.txt file.