I am trying to test a mod that I've created of Peercoin.

I need to install libdb4.8++-dev, but it is not available.

How can I install it or an equivalent?

Note: this is not a dupe since I cannot install a package of my custom alteration of Peercoin.

From nullnoname answer. Here is what I did for ubuntu 16:

sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install -y libdb4.8-dev libdb4.8++-dev

If you absolutely need db-4.8 related packages in Ubuntu 13.10 and newer, they can be installed from Bitcoin team PPA. (ppa:bitcoin/bitcoin)

up vote 1 down vote accepted

Well, it compiles with libdb++-dev and sudo apt-get install libminiupnpc-dev -y thanks to this guy.

However, "Upstream Bitcoin considers db-4.8 to be the only supported version. 5.1 is known to work, buts databases are incompatible with official builds created with db-4.8."

If mining, add the -detachdb flag to ./ppcoin-qt (probably best to just do it anyway).

You could compile it from source as well. $ wget 'http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz' $ tar -xzvf db-4.8.30.NC.tar.gz $ cd db-4.8.30.NC/build_unix/ $ ../dist/configure --enable-cxx $ make $ make install

Tell your system where to find db4.8 $ export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.4.8/include" $ export BDB_LIB_PATH="/usr/local/BerkeleyDB.4.8/lib" $ ln -s /usr/local/BerkeleyDB.4.8/lib/libdb-4.8.so /usr/lib/libdb-4.8.so

Tell your system where to find db4.8:

$ export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.4.8/include"

$ export BDB_LIB_PATH="/usr/local/BerkeleyDB.4.8/lib"

$ ln -s /usr/local/BerkeleyDB.4.8/lib/libdb-4.8.so /usr/lib/libdb-4.8.so

After 3 hours googling I almost gave up then this one worked for me!

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.