Trouble running bitcoin unit tests with test_bitcoin on Ubuntu 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.
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.