<p>When I try to compile bitcoind on a Ubuntu 10.04 machine I do:</p>

<pre><code>make -f makefile.unix 
</code></pre>

<p>but get errors such as:</p>

<pre><code>In file included from db.cpp:6:
db.h:14:20: warning: db_cxx.h: No such file or directory
In file included from db.cpp:6:
db.h:42: error: 'DbEnv' does not name a type
</code></pre>

<p>I wonder what could be the error. In mac os x, I could compile it wothout problem.</p>

CC BY-SA 3.0
2013-05-02T12:01:16.437Z
You can install bitcoin from this PPA on Ubuntu, must you not know: ppa:bitcoin/bitcoin (https://launchpad.net/~bitcoin/+archive/bitcoin)
Steven Roose
CC BY-SA 3.0
2013-05-28T11:40:43.833Z
Try `sudo apt-get install libdb++-dev`
Sev
<linux>
Bitcoind compilation in Ubuntu
Open the way
# Bitcoind compilation in Ubuntu

(Asked by: username_0 on 2013-05-02)

When I try to compile bitcoind on a Ubuntu 10.04 machine I do:

```
make -f makefile.unix 

```

but get errors such as:

```
In file included from db.cpp:6:
db.h:14:20: warning: db_cxx.h: No such file or directory
In file included from db.cpp:6:
db.h:42: error: 'DbEnv' does not name a type

```

I wonder what could be the error. In mac os x, I could compile it wothout problem.

**Tags:** linux

> **Comments:**
> **username_1**: You can install bitcoin from this PPA on Ubuntu, must you not know: ppa:bitcoin/bitcoin (https://launchpad.net/~bitcoin/+archive/bitcoin)  
> **username_2**: Try `sudo apt-get install libdb++-dev`  

---

## 0 answers

