<p>To allow compatibility of your wallet.dat file with other bitcoind installations, it's strongly recommended to use bdb 4.8.</p>

<p>Nevertheless, you can disable the db4.8 check by adding <code>--with-incompatible-bdb</code> during configure.</p>

<p>Better would be to manually install berkley db 4.8 in a isolated path and compile bitcoin-core with something similar to:</p>

<p><code>CPPFLAGS="$CPPFLAGS -I&lt;your-bdb4.8-path&gt;/include"
LIBS="$LIBS -L&lt;your-bdb4.8-path&gt;/lib"
</code></p>

<p>But this would probably require some makefile tweaking.</p>

CC BY-SA 3.0
2015-06-17T23:34:48.787Z
thanks! i have already installed berkley db 4.8 under `${BITCOIN_ROOT}/db4` (i followed the instructions in `docs/builld-unix.md`) i will try and compile bitcoin-core with the flags you suggest. if i have problems i will update the op.
mulllhausen
CC BY-SA 3.0
2015-06-17T23:52:14.407Z
nope - its still coming up with the same errors when i run `./configure` even with `CPPFLAGS="$CPPFLAGS -I${BITCOIN_ROOT}/db4/include"` and with `LIBS="$LIBS -L${BITCOIN_ROOT}/db4/lib"`
mulllhausen
CC BY-SA 3.0
2015-06-18T06:55:11.493Z
If you have troubles using different include/ lib/ dirs for bdb you might try `--with-incompatible-bdb` and take the risk of not being able to use your wallet on bitcoin-core installations with bdb4.8.
Jonas Schnelli
CC BY-SA 3.0
2015-06-18T08:23:20.737Z
ya i did that :) i can always import my private keys into other wallets so its no big problem for me
mulllhausen
CC BY-SA 3.0
2015-06-17T20:03:07.567Z
2015-06-17T20:03:07.567Z
Jonas Schnelli
<p>i am attempting to upgrade my bitcoin client on debian wheezy. i have been following <a href="https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md" rel="nofollow">the docs for this version</a> and i installed berkley db to <code>${BITCOIN_ROOT}/db4</code> as directed. that went fine, but now when i run <code>./configure</code> it says the wrong version of berkleydb is installed:</p>

<pre><code>checking whether C++ compiler accepts -fvisibility=hidden... yes
checking for Berkeley DB C++ headers... default
configure: error: Found Berkeley DB other than 4.8, required for portable wallets (--with-incompatible-bdb to ignore or --disable-wallet to disable wallet functionality)
</code></pre>

<p>i also found that <code>autogen.sh</code> does not exist in the bitcoin root dir so i was unable to run it as per the instructions.</p>

<p>i already have berkley db 5 installed:</p>

<pre><code>$ dpkg -l | grep db5
ii  db5.1-util                                   5.1.29-5                           amd64        Berkeley v5.1 Database Utilities
ii  libdb5.1:amd64                               5.1.29-5                           amd64        Berkeley v5.1 Database Libraries [runtime]
ii  libdb5.1++:amd64                             5.1.29-5                           amd64        Berkeley v5.1 Database Libraries for C++ [runtime]
ii  libdb5.1++-dev                               5.1.29-5                           amd64        Berkeley v5.1 Database Libraries for C++ [development]
ii  libdb5.1-dev                                 5.1.29-5                           amd64        Berkeley v5.1 Database Libraries [development]
ii  libdb5.1-java                                5.1.29-5                           all          Berkeley v5.1 Database Libraries for Java
ii  libdb5.1-java-jni:amd64                      5.1.29-5                           amd64        Berkeley v5.1 Database Libraries for Java
ii  libkdb5-6:amd64                              1.10.1+dfsg-5+deb7u2               amd64        MIT Kerberos runtime libraries - Kerberos database
ii  libsybdb5:amd64                              0.91-2+deb7u1                      amd64        libraries for connecting to MS SQL and Sybase SQL servers
</code></pre>

<p>i don't want to remove db5 because other programs i rely on are using it:</p>

<pre><code> $ apt-cache rdepends db5.1-util
db5.1-util
Reverse Depends:
  subversion
    db5.1-util:i386
  subversion
    db5.1-util:i386
  libapache2-svn
    db5.1-util:i386
</code></pre>

<p><strong>how can i get bitcoin to install with berkley db 4.8 when 5.1 is already installed elsewhere?</strong></p>

<installation>
upgrading to bitcoin 0.10.2 fails
mulllhausen
# upgrading to bitcoin 0.10.2 fails

(Asked by: username_0 on 2015-06-17)

i am attempting to upgrade my bitcoin client on debian wheezy. i have been following [the docs for this version](https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md) and i installed berkley db to `${BITCOIN_ROOT}/db4` as directed. that went fine, but now when i run `./configure` it says the wrong version of berkleydb is installed:

```
checking whether C++ compiler accepts -fvisibility=hidden... yes
checking for Berkeley DB C++ headers... default
configure: error: Found Berkeley DB other than 4.8, required for portable wallets (--with-incompatible-bdb to ignore or --disable-wallet to disable wallet functionality)

```

i also found that `autogen.sh` does not exist in the bitcoin root dir so i was unable to run it as per the instructions.

i already have berkley db 5 installed:

```
$ dpkg -l | grep db5
ii  db5.1-util                                   5.1.29-5                           amd64        Berkeley v5.1 Database Utilities
ii  libdb5.1:amd64                               5.1.29-5                           amd64        Berkeley v5.1 Database Libraries [runtime]
ii  libdb5.1++:amd64                             5.1.29-5                           amd64        Berkeley v5.1 Database Libraries for C++ [runtime]
ii  libdb5.1++-dev                               5.1.29-5                           amd64        Berkeley v5.1 Database Libraries for C++ [development]
ii  libdb5.1-dev                                 5.1.29-5                           amd64        Berkeley v5.1 Database Libraries [development]
ii  libdb5.1-java                                5.1.29-5                           all          Berkeley v5.1 Database Libraries for Java
ii  libdb5.1-java-jni:amd64                      5.1.29-5                           amd64        Berkeley v5.1 Database Libraries for Java
ii  libkdb5-6:amd64                              1.10.1+dfsg-5+deb7u2               amd64        MIT Kerberos runtime libraries - Kerberos database
ii  libsybdb5:amd64                              0.91-2+deb7u1                      amd64        libraries for connecting to MS SQL and Sybase SQL servers

```

i don't want to remove db5 because other programs i rely on are using it:

```
 $ apt-cache rdepends db5.1-util
db5.1-util
Reverse Depends:
  subversion
    db5.1-util:i386
  subversion
    db5.1-util:i386
  libapache2-svn
    db5.1-util:i386

```

**how can i get bitcoin to install with berkley db 4.8 when 5.1 is already installed elsewhere?**

**Tags:** installation


---

## 1 answers

### Answer by username_1 on 2015-06-17. Score: 1 | Accepted answer

To allow compatibility of your wallet.dat file with other bitcoind installations, it's strongly recommended to use bdb 4.8.

Nevertheless, you can disable the db4.8 check by adding `--with-incompatible-bdb` during configure.

Better would be to manually install berkley db 4.8 in a isolated path and compile bitcoin-core with something similar to:

`CPPFLAGS="$CPPFLAGS -I<your-bdb4.8-path>/include"
LIBS="$LIBS -L<your-bdb4.8-path>/lib"`

But this would probably require some makefile tweaking.

> **Comments:**
> **username_0**: thanks! i have already installed berkley db 4.8 under `${BITCOIN_ROOT}/db4` (i followed the instructions in `docs/builld-unix.md`) i will try and compile bitcoin-core with the flags you suggest. if i have problems i will update the op.  
> **username_0**: nope - its still coming up with the same errors when i run `./configure` even with `CPPFLAGS="$CPPFLAGS -I${BITCOIN_ROOT}/db4/include"` and with `LIBS="$LIBS -L${BITCOIN_ROOT}/db4/lib"`  
> **username_1**: If you have troubles using different include/ lib/ dirs for bdb you might try `--with-incompatible-bdb` and take the risk of not being able to use your wallet on bitcoin-core installations with bdb4.8.  
> **username_0**: ya i did that :) i can always import my private keys into other wallets so its no big problem for me  

---

