That error as title occurred when installing on mac following build-osx.md
Specifically it occurs after executing ./configure
Many say brew link berkeley-db4 --force is required though it's not mentioned on build-osx.md and I did it.
brew install automake berkeley-db libtool boost --c++11 miniupnpc openssl pkg-config protobuf --c++11 qt5 libevent
git clone https://github.com/Bitcoin-ABC/bitcoin-abc.git
cd bitcoin-abc
./autogen.sh
brew link berkeley-db4 --force
./configure
Installation is done without error
checking for Berkeley DB C++ headers... no
configure: error: libdb_cxx headers missing, Bitcoin ABC requires this library for wallet functionality (--disable-wallet to disable wallet functionality)
Latest version as of September 7th
This is normally the contents of a debug.log or config.log file. Raw text or a link to a pastebin type site are preferred.
I have the same issue on Ubuntu 16.04
I'm not sure about OSX, so I've marked the ticket as Help Wanted for those with OSX machines. For Linux, following the libdb install instructions in doc/build-unix.md should work.
After fighting with this issue for a while, @matiu helped me finally get to the bottom if it.
First – Bitcoin ABC uses the latest version of Berkeley DB, so if you're looking at this issue, it's likely because you've tried to build another Satoshi fork which hasn't made this upgrade yet. (Unlimited, Core, etc.) If you have installed berkeley-db@4, it might take some unwinding to get it cleaned out.
berkeley-db@4 in ~/.bash_profile or equivalent (it shouldn't be exported into PATH, LDFLAGS, or CPPFLAGS)brew unlink berkeley-db@4 && brew unlink berkeley-db && brew uninstall berkeley-db@4 && brew uninstall berkeley-dbbrew install berkeley-dbbitcoin-abc directory to make sure none of the previous configuration sticks around: git clean -dfx (this deletes all of your uncommitted files)./autogen.sh && mkdir build && cd build && ../configure && makeFor me the problem was actually the version of my libdb_cxx.h – even after I installed the latest version of berkeley-db with brew, brew didn't replace the header file (I had the berkeley-db@4 header, but the latest version of the .dylib).
Once I cleaned out all the previous berkeley-db installations and reinstalled, it worked immediately. (It might be a bug in brew, but I'm not confident enough about that to report it – probably just something I broke.)
If you're still having trouble, check the config.log for the full error and post it here.
I cannot get brew to work on Ubuntu properly nor can I compile Bitcoin ABC after downloading the Berkeley DB manually. This is so frustrating.
Same issue as above - I have been fighting this for a while but nothing works.
@axelay @Gerryrulz after running ./configure, check for configure.log for the precise error.
also, search your filesystem for the file 'libdb_cxx.h' and check its location
@matiu thanks that put me on the right track.
I had the Berkeley DB 4.8 installed whereas the new code requires the latest version. I installed version 5.3.28 and it now compiles perfectly fine.
@axelay you are welcome! I am glad you made it work, have fun!
I came across the same issue. I tried many times but I am not able to get over this issue. So what I did instead is to ignore this as a warning. It worked fine. Majority of the times the problem is with the configuration of berkeleydb.
Works on Debian with DB 4.8
../configure BDB_CFLAGS="-I${BDB_PREFIX}/include/" BDB_LIBS="-L${BDB_PREFIX}/lib/ -ldb_cxx-4.8"
Works on Debian with DB 4.8
../configure BDB_CFLAGS="-I${BDB_PREFIX}/include/" BDB_LIBS="-L${BDB_PREFIX}/lib/ -ldb_cxx-4.8"
Thanks! This works on Ubuntu too!
Most helpful comment
Works on Debian with DB 4.8
../configure BDB_CFLAGS="-I${BDB_PREFIX}/include/" BDB_LIBS="-L${BDB_PREFIX}/lib/ -ldb_cxx-4.8"