1

I am using a CentOS server to build Bitcoin from source. After installing all of Bitcoin's dependancies on this build server, I have successfully built bitcoind and bitcoin-cli (the two binaries that I need). I then copy those binaries from the build server to the bitcoin server which of course is a fresh image of the CentOS. Now I'm wondering if I need to have BerkeleyDB 4.8 installed on the bitcoin server, or if I'm just not compiling/linking bitcoin properly.

The error as you would expect if BerkeleyDB 4.8 is not installed/linked properly:

error while loading shared libraries: libdb_cxx-4.8.so: cannot open shared object file: No such file or directory

It was my assumption that I can install dependancies on one server, link and build bitcoin on that server, and then move the binaries to a server without scary build dependancies on it to run the binary in a clean environment. Someone please shed some wisdom on my lack thereof.

2
  • 1
    You can definitely compile with ./configure --disable-wallet to avoid Berkley DB. Are you getting this error at compile or run time?
    – Nick ODell
    Commented Apr 13, 2016 at 20:24
  • I'll need the wallet enabled so that is not an option. I'm getting the error at runtime. Berkeley DB is not installed however this article: github.com/bitcoin/bitcoin/issues/4103 says that i can build Berkeley --with-static and that should compile BerkeleyDB4.8 into the bitcoin binary but it doesnt seem to be working.
    – SteveHadow
    Commented Apr 14, 2016 at 0:18

1 Answer 1

1

I feel stupid...

https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md#berkeley-db

I followed that to the T and I got it working. Now I'm struggling with OpenSSL issues :/

1
  • make sure you got all the dependencies installed
    – Web Weave
    Commented Oct 11, 2016 at 11:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.