Missing entry to install #17337

issue renepickhardt openend this issue on November 1, 2019
  1. renepickhardt commented at 12:00 pm on November 1, 2019: none

    Bitcoin setup is not successfull on a clean ubuntu system following the install instructions https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md

    Expected behavior

    I would expect that installation to complete and that my setup is able to build bitcoin

    Actual behavior

    Apparently ./configure gave this error: “configure: error: libdb_cxx headers missing, Bitcoin Core requires this library for wallet functionality (–disable-wallet to disable wallet functionality)”. next make does not work

    0make
    1make: *** No targets specified and no makefile found.  Stop.
    2**System information**
    

    To reproduce

    The bitcoin version this happens is b54666c849bad258d92d6d1e45a051d36055681e

    **Fix ** there are many solutions specified in #2998 but for me the woking one was the comment #2998 (comment) from @bellaj

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

    So I guess this could be added to the ubuntu section of https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md ?

  2. renepickhardt added the label Bug on Nov 1, 2019
  3. fanquake added the label Linux/Unix on Nov 1, 2019
  4. hebasto commented at 1:46 pm on November 1, 2019: member

    So I guess this could be added to the ubuntu section of https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md ?

    From build-unix.md:

    Ubuntu and Debian have their own libdb-dev and libdb++-dev packages, but these will install BerkeleyDB 5.1 or later. This will break binary wallet compatibility with the distributed executables, which are based on BerkeleyDB 4.8. If you do not care about wallet compatibility, pass --with-incompatible-bdb to configure.

    Otherwise, you can build from self-compiled depends (see above).

  5. laanwj removed the label Bug on Nov 1, 2019
  6. laanwj added the label Questions and Help on Nov 1, 2019
  7. laanwj commented at 2:12 pm on November 1, 2019: member

    For the wallet you need some version of BerkeleyDB. On Debian I usually just install the libdb++-dev (5.x), but if compatibility with the distributed binaries is important you need to use 4.8.

    The supported cross-platform way to build BerkeleyDB 4.8 is to use the contrib/install_db4.sh script. This is mentioned in all the doc/build-*.md files.

    (the PPA is another option, but as this relies on a third-party source, this is intentionally not mentioned)

  8. laanwj closed this on Nov 1, 2019

  9. MarcoFalke commented at 2:38 pm on November 1, 2019: member
    https://launchpad.net/~bitcoin/+archive/ubuntu/bitcoin says “NOT MAINTAINED (for new versions of Ubuntu)”, so I’d rather not use that.
  10. DrahtBot locked this on Dec 16, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-30 15:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me