New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
configure: error: libdb_cxx headers missing (netbsd) #2998
Comments
This path should already be searched if /usr/pkg/include is in your include path... Can you post a config.log? |
Same issue here: CentOS running on a virtual machine.
Contents of config.log: http://pastebin.com/N1jW9GuF |
Still an issue with latest master? AFAIK there were changes with the new autotools system so perhaps you can try again. |
Same problem on ubuntu 13.04. |
sudo apt-get install libdb++-dev solves my problem. |
Obviously you get that error if libdb is not installed... if you read carefully, the original poster has the library installed but it is not detected, so it is not the same problem. |
Since there is no libdb++ in official CentOs repo, I've done the following to fix this problem
|
Alex, thank you! |
Edit: I've added it to
Works. |
a better option would be to add a --with-db4 option to configure |
Yes, or BDB_CFLAGS/BDB_LIBS as proposed in #3550 |
This can be fixed by doing the following: |
Any benefit to the symlink vs something like: echo "/usr/local/lib" > /etc/ld.so.conf.d/db-4.8.30.conf
ldconfig |
Or build a static library and not a shared one, so you don't have to install the library on your system search path at all. |
[centos 6.5, current bitcoin version] I seem to have successfully compiled bitcoind, however, when I try to run it, I get the following:
Having followed the directions here, I downloaded and compiled 4.8 source, but I can't seem to get any BerkeleyDB.4.8 folders to be generated in /usr/local. If I simply copy or reference this .so file in the correct places, should that resolve the issue? Should I point bitcoin/src/m4/bitcoin_find_bdb48.m4, line:7, to Copying libdb_cxx-4.8.so do /usr/lib64 does not seem to resolve the issue. My apologies in advance for my limited understanding. I'm still getting up to speed with several layers of abstraction involved here. Thanks in advance. Full post here: https://bitcointalk.org/index.php?topic=588032 |
dlio, have you tried to 'make install' from 'db-4.8.30.NC/build_unix/' ? It should put many of the files in their proper places if I remember correctly. |
Thanks for the quick reply coincapsig. I have tried this following alexander's method as per the above: but doing a |
I feel your pain dilo, I have the exact same issue on this build: Here is the output from the last 2 lines before ./configure fails. checking for Berkeley DB C++ headers... no I have also done as Alex has said above and it did not work for me either. |
For those building libcxx from scratch, can you try following the updated steps here? https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md#berkeley-db This avoids having to install globally. |
@akstunt .. I had the same issue on Ubuntu 12.04:
Here's how I fixed it:
Then just run the |
This exact same problem lives on. Debian 7.9 in Feb 2016. This solved the problem, sort of: The consequent new error was this: Adding the above suggestion to configure allowed compilation, but this warning appeared: |
@MichaelBrenden my ubuntu wily has the same problems,and use |
on Fedora 24 (and probably other redhat like) |
I have a headache and I haven't solved this problem |
@chenluyong what did you try and what was the outcome? |
@ronaldpetty The problem seems to have been solved, but I haven't recorded it |
install libdb-devel |
On Ubuntu 16.04, here is how I solved it. sudo add-apt-repository ppa:bitcoin/bitcoin |
On centos 7.4 and installed libdb、libdb-devel、libdb-cxx、libdb-cxx-devel, but the version is too high. So I searched lower version at https://www.rpmfind.net.
Then |
@yuexiahandao here is my env:
here is the problem:
last,the resolution is:
and
|
as mentionned in build-linux file you need to install specific berkleydb |
May be it will help someone: I had the issue with error configure: error: libdb_cxx headers missing My problem was related to the step During first installation, I did everything like in instructions, but for some reason i didn't have choice to input a number to select appropriate mingw (posix). May be I just didn't see it. I've seen this comment "# Set the default mingw32 g++ compiler option to posix." but thought that may be this command will do everything needed. But during second clean installation I payed more attention and selected appropriate one with posix and then stem with make HOST=x86_64-w64-mingw32 took much much more time and everything become ok and I didn't have this error. It's regarding official installation build-windows with WSL ubuntu 16 |
Try to install apt install libdb++-dev. It works for me on ubuntu 16.04. |
this code fix it for me :
(source https://cryptoandcoffee.com/mining-gems/install-berkeley-4-8-db-libs-on-ubuntu-16-04/ ) |
When I try to run ./bitcoind, throw this error message: |
these files are located in /usr/pkg/include/db4
samsa% ls /usr/pkg/include/db4
db.h db_185.h db_cxx.h
The text was updated successfully, but these errors were encountered: