user542: 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.

user3183: it compiles nice with later versions but be carefull and do not mix up db*-dev and db*++-dev.
Here you have to install the "++" version

user1914: I think you can install the libdb4.8++-dev package if you add the stable debian repo in your sources.list.
I did it on my system (debian sid), and now I can proceed to the installation.  I haven't tested the full bitcoind compilation yet, though.

user85: You need to add -I <directory> to the end of the CXX=g++ line in the Makefile. The directory should be the one that contains the db_cxx.h file from your BerkeleyDB installation. So, change:
CXX=g++

to
CXX=g++ -I /usr/local/BerkeleyDB.5.1

You may need a /include or something like that on the end of that. It depends exactly which directory holds the db_cxx.h file.

user4758: I did the following command on Ubuntu and it worked.
sudo apt-get install libdb++-dev


542: <p>When building bitcoind on LinuxCoin (Debian based), I receive this error</p>

<blockquote>
  <p>"headers.h:36:20: fatal error: db_cxx.h: No such file or directory"</p>
</blockquote>

<p>following the instructions at <a href="https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.txt">https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.txt</a></p>

<p>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:</p>

<blockquote>
  <p>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</p>
  
  <p>E: Package 'libdb4.8++-dev' has no installation candidate</p>
</blockquote>

<p>NOTE: libdb4.8-dev and all other dependencies are already installed.</p>

<p>It's probably a silly mistake on my part but any help is appreciated! Thanks.</p>
 3183: <p>it compiles nice with later versions but be carefull and do not mix up db*-dev and db*++-dev.
Here you have to install the "++" version</p>
 1914: <p>I think you can install the libdb4.8++-dev package if you add the stable debian repo in your sources.list.</p>

<p>I did it on my system (debian sid), and now I can proceed to the installation.  I haven't tested the full bitcoind compilation yet, though.</p>
 85: <p>You need to add <code>-I &lt;directory&gt;</code> to the end of the <code>CXX=g++</code> line in the <code>Makefile</code>. The directory should be the one that contains the <code>db_cxx.h</code> file from your BerkeleyDB installation. So, change:</p>

<pre><code>CXX=g++
</code></pre>

<p>to</p>

<pre><code>CXX=g++ -I /usr/local/BerkeleyDB.5.1
</code></pre>

<p>You may need a <code>/include</code> or something like that on the end of that. It depends exactly which directory holds the <code>db_cxx.h</code> file.</p>
 4758: <p>I did the following command on Ubuntu and it worked.</p>

<pre><code>sudo apt-get install libdb++-dev
</code></pre>
