Post
Topic
Board Bitcoin Technical Support
Re: Unable to compile bitcoin
by
ioctlvoid
on 19/07/2011, 13:50:31 UTC
It seems that your installation of Berkeley DB (berkdb, db, whatever you'd call it) is incomplete.

A proper installation of Berkeley DB should install db.h, which is depended on by db_cxx.h (which is also part of berkdb)

I'm guessing that the problem is that you're missing the /usr/include/db.h symlink

Do you have a /usr/include/dbX.X directory, where X.X is your version of berkdb?  Just "ln -s /usr/include/dbX.X/db.h /usr/include/db.h", and all is well Smiley

Thank you.

The program does still not compile, but at least I got a new error (a third variant):

Code:
g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -DNOPCH -DFOURWAYSSE2 -DUSE_SSL -DUSE_UPNP=0 -I/usr/local/lib/wx/include/gtk2-unicode-2.9 -I/usr/local/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -DGUI -o obj/util.o util.cpp
In file included from main.h:11,
                 from headers.h:96,
                 from util.cpp:4:
db.h: In member function 'bool CDB::Exists(const K&)':
db.h:149: error: 'class Db' has no member named 'exists'
make: *** [obj/util.o] Error 1

This is after having created the missing symlink as you mentioned.