-
Notifications
You must be signed in to change notification settings - Fork 37.2k
Compilation on Debian Wheezy fails - need to use libdb 4.8 #3686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
No, please visit the Berkeley DB website for instructions on installing BDB. |
I used the below instruction from http://www.peercointalk.org/index.php?topic=798.0 link: Get db4.8 source, compile and installwget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz Tell your system where to find db4.8export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.4.8/include" ln -s /usr/local/BerkeleyDB.4.8/lib/libdb_cxx-4.8.so /usr/lib/libdb_cxx-4.8.soUnfortunately, the result is the same. |
There should be an option to tell ./configure where it can find the BDB headers / libraries but it doesn't seem to exist. This is where it searches for the BDB 4.8 lib: https://github.com/bitcoin/bitcoin/blob/master/src/m4/bitcoin_find_bdb48.m4 |
Can you try:
It's ugly but the only way at this moment, I think. |
Might be ugly but it worked on Debian Wheezy. I followed link and instructions from kostaz (on february 16 's comment on this page) to successfully compile BerkeleyDB 4.8. |
@jeromecc There have been instructions in the UNIX build documentation for a while for building BDB 4.8: |
How hard is it to support latest version of db? |
The issue is that newer versions of bdb produce wallet files which are not backward compatible, thus will not load in official binaries using 4.8. If you don't care about this, you can configure using --with-incompatible-bdb to force it to use a newer version. Another alternative is --disable-wallet to avoid the bdb dependency altogether. |
With
This puts bdb in the system as a Debian package where bitcoin can find it. Note, this only works if you don't already have another version of You can remove it later with:
|
Just a note, there is a typo in @jcoffland's last command. It should be
|
Thanks @tsusanka, I've edited the comment above as well. |
Thanks dear @fanquake and dear @jcoffland but checkinstall is not a command is writting |
its ok! |
same here on
|
Running "./configure" reports the below error:
configure: error: Found Berkeley DB other than 4.8, required for portable wallets (--with-incompatible-bdb to ignore)
Naturally, libdb-4.8 is needed for wallet portability, hence, need to resolve this issue.
Please help (add instructions) on how to install Berkeley DB 4.8 manually.
The default Berkeley DB on Debian Wheezy is 5.1.
The text was updated successfully, but these errors were encountered: