Build process on linux #3487

issue benjiqq opened this issue on January 5, 2014
  1. benjiqq commented at 10:28 AM on January 5, 2014: none

    i'm trying to build bitcoind on Ubuntu 13.04 following the standard instructions

    I was able to compile with if I add these three packages, however without the correct BDB: libdb++-dev libprotobuf-dev alien.

    I tried to build BDB myself and then I get

    EXCEPTION: N5boost12interprocess22interprocess_exceptionE       
    No such file or directory       
    bitcoin in AppInit()
    

    The docs don't mention LevelDB at all. Is LevelDB optional?

  2. laanwj commented at 10:37 AM on January 5, 2014: member

    Leveldb is part of the source, you don't need to do anything special for it.

    libprotobuf-dev should be available as package.

  3. laanwj referenced this in commit 7a744c48dd on Jan 5, 2014
  4. laanwj referenced this in commit e78122d399 on Jan 5, 2014
  5. laanwj commented at 9:13 AM on January 6, 2014: member

    About the BDB error: it could be a result of a BDB 4.8 versus 5.1 conflict.

    You say you've built BDB yourself; can you verify using ldd that the compiled executable links against the expected BDB library?

  6. benjiqq commented at 9:29 AM on January 7, 2014: none

    The problem was I had to build BDB 4.8 NC, i.e. use db-4.8.30.NC.tar.gz and NOT db-4.8.30.tar.gz

    This script does the build

    if [ ! -e db-4.8.30 ]
    then
    wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
    tar zxvf db-4.8.30.NC.tar.gz
    rm -f db-4.8.30.NC.tar.gz
    fi
    
    cd db-4.8.30.NC/build_unix
    sudo ../dist/configure --prefix=/usr/local --enable-cxx
    make
    sudo make install
    
  7. benjiqq closed this on Jan 7, 2014

  8. laanwj commented at 8:29 AM on February 27, 2014: member

    For future reference to people google'ing this issue:

    EXCEPTION: N5boost12interprocess22interprocess_exceptionE       
    No such file or directory       
    bitcoin in AppInit()
    

    This means that your datadir is not writable. Boost interprocess cannot make the lock file.

  9. MarcoFalke locked this on Sep 8, 2021
Contributors

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: 2026-04-29 03:16 UTC

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