5

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.

8

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
| improve this answer | |
3

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)

| improve this answer | |
2
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev

This repository is not found

Err:15 http://ppa.launchpad.net/bitcoin/bitcoin/ubuntu disco Release

404 Not Found [IP: 91.189.95.83 80]

So you can try this method

wget http://download.oracle.com/berkeley-db/db-4.8.30.zip
unzip db-4.8.30.zip
cd db-4.8.30
cd build_unix/
../dist/configure --prefix=/usr/local --enable-cxx
make
make install

Also commonly fixes : libdb_cxx headers missing Ubuntu found berkeley db other than 4.8, required for portable wallets berkeley db 4.8 Ubuntu

reference

| improve this answer | |
1

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).

| improve this answer | |
1
add-apt-repository ppa:bitcoin/bitcoin
apt update
apt install -y libdb4.8-dev libdb4.8++-dev 

currently the ppp:bitcoin is giving some error messages (including key), it may even take sometime to complete the repository inclusion, but it will be ok in the end. other options as snap may be considered if the error message is a concern

| improve this answer | |
0

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

| improve this answer | |
0

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!

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy