user13411: From Bitcoin Core's test directory (bitcoin/src/test), the executable test_bitcoin is supposed to run the unit tests. When I run test_bitcoin, however, I get:
replication requires locking support
Test setup error: std::runtime_error: CDBEnv::MakeMock : Error 22 opening database environment.

How can I run test_bitcoin? I installed Bitcoin from source.
Also:
I ran configure using the --with-incompatible-bdb flag.

user2306: Try installing the correct version of BerkleyDB. (4.8) I have the correct .debs in this repository: 
http://github.com/nickodell/build_bitcoin
You may need to uninstall the newer version of libdb first.

13411: <p>From Bitcoin Core's <a href="https://github.com/bitcoin/bitcoin/tree/master/src/test" rel="nofollow">test directory</a> (<code>bitcoin/src/test</code>), the executable <code>test_bitcoin</code> is supposed to run the unit tests. When I run <code>test_bitcoin</code>, however, I get:</p>

<pre><code>replication requires locking support
Test setup error: std::runtime_error: CDBEnv::MakeMock : Error 22 opening database environment.
</code></pre>

<p>How can I run <code>test_bitcoin</code>? I installed Bitcoin from source.</p>

<p><strong>Also</strong>:</p>

<p>I ran <code>configure</code> using the <code>--with-incompatible-bdb</code> flag.</p>
 2306: <p>Try installing the correct version of BerkleyDB. (4.8) I have the correct .debs in this repository: </p>

<p><a href="http://github.com/nickodell/build_bitcoin" rel="nofollow">http://github.com/nickodell/build_bitcoin</a></p>

<p>You may need to uninstall the newer version of libdb first.</p>
