<p>I feel stupid... </p>

<p><a href="https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md#berkeley-db" rel="nofollow">https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md#berkeley-db</a></p>

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

CC BY-SA 3.0
2016-10-11T11:38:23.940Z
make sure you got all the dependencies installed
Web Weave
CC BY-SA 3.0
2016-04-14T00:21:23.557Z
2016-04-14T00:21:23.557Z
SteveHadow
<p>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. </p>

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

<pre><code>error while loading shared libraries: libdb_cxx-4.8.so: cannot open shared object file: No such file or directory
</code></pre>

<p>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.</p>

CC BY-SA 3.0
2016-04-13T20:24:15.800Z
You can definitely compile with `./configure --disable-wallet` to avoid Berkley DB. Are you getting this error at compile or run time?
Nick ODell
CC BY-SA 3.0
2016-04-14T00:18:44.370Z
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: https://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
<bitcoind><compiling><library>
Can I run bitcoind without BerkeleyDB 4.8 installed?
SteveHadow
# Can I run bitcoind without BerkeleyDB 4.8 installed?

(Asked by: username_0 on 2016-04-13)

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.

**Tags:** bitcoind, compiling, library

> **Comments:**
> **username_1**: You can definitely compile with `./configure --disable-wallet` to avoid Berkley DB. Are you getting this error at compile or run time?  
> **username_0**: 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: https://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.  

---

## 1 answers

### Answer by username_0 on 2016-04-14. Score: 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 :/

> **Comments:**
> **username_2**: make sure you got all the dependencies installed  

---

