Quick heads up.
If you are building from the source, you'll absolutely need to use
Berkeley DB 4.8. Using a newer version causes the daemon/qt to fail. Some distributions of Linux do not have this version in the package manager and you'll be forced to download it separately.
Bash:
cd ~/Downloads
wget http://download.oracle.com/berkeley-db/db-4.8.30.tar.gz
tar -zxvf db-4.8.30.tar.gz
cd db-4.8.30/build_unix
../dist/configure --prefix=/usr/local --disable-replication --enable-cxx --enable-shared=no
make && sudo make install