18
3
When building bitcoind on LinuxCoin (Debian based), I receive this error
"headers.h:36:20: fatal error: db_cxx.h: No such file or directory"
following the instructions at https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.txt
I believe the error is caused by the package "libdb4.8++-dev" being non-existant for the distro, as when attempting to "apt-get install" that, I get:
Package libdb4.8++-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package 'libdb4.8++-dev' has no installation candidate
NOTE: libdb4.8-dev and all other dependencies are already installed.
It's probably a silly mistake on my part but any help is appreciated! Thanks.
@DavidSchwartz - just a small correction - I found the package is called libdb-dev – Richard Green – 2013-05-13T12:55:35.020
Do you have a
db_cxx.hfile anywhere? You can check withlocate. – David Schwartz – 2011-10-09T15:29:12.110No. I used to have the db-5.1.8 version but I removed that as the readme said I needed 4.8. – Sean Chapman – 2011-10-09T15:33:15.123
If you don't have libdb-devel installed, it won't compile. You can use 5.1.8, just realize your files won't be compatible with builds made with earlier versions. – David Schwartz – 2011-10-09T15:53:49.933
Yeah. I've redownloaded and compiled 5.1.8 now and that's all okay but I'm getting the same error. Not sure how to tweak this makefile to include the db5.1.8 directories – Sean Chapman – 2011-10-09T16:03:00.393
The makefile I am using is: http://pastebin.com/wGpPNjEb. My db-5.1.8 directories are located at /usr/local/BerkeleyDB.5.1/
– Sean Chapman – 2011-10-09T16:13:06.823