Post
Topic
Board Beginners & Help
Re: Unable to compile bitcoin
by
ioctlvoid
on 15/07/2011, 16:46:21 UTC

You might need libdb4.8++-dev or something like it.


Thank you for the help.

I've been trying this for a few hours now. I downloaded libdb4.8-dev_4.8.24-1ubuntu1_i386.deb from http://packages.ubuntu.com/lucid/i386/libdb4.8-dev/download. Converted it to TGZ with Alien and installed it, then finally ran ldconfig.

The compilation still fails, but the compiler added one new line:

Code:
/usr/include/db_cxx.h:796: error: 'DB_XIDDATASIZE' was not declared in this scope

The full compiler error is:

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 headers.h:43,
                 from util.cpp:4:
/usr/include/db_cxx.h:796: error: 'DB_XIDDATASIZE' was not declared in this scope
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

Any ideas?