<p><a href="https://bitcointalk.org/index.php?action=profile;u=6020" rel="nofollow">Wolciph</a> over on the Bitcoin forums wrote a <a href="http://pastebin.com/JLxKKpuq" rel="nofollow">bash script</a> specifically for 11.04. You haven't posted your specific build errors, but I'm guessing that the problem is with the wxWidgets lib and you'll probably have less issues when the main Bitcoin client eventually moves over to Qt (which I believe is in the works, correct me if I'm wrong). In case the link to the script eventually goes down, here it is:</p>

<pre><code>#!/bin/bash
echo "DISCLAIMER: you are using this script at your own discretion! By typing 'c', you agree that you have read the script yourself and have understood it and that you will thus take full responsabilty in the eventuality that this script leads to any harm to you or your property. If you do not agree type 'n'"
read -n 1 r
[ "$r" = 'c' ] || exit 0

set -e

echo "You will be prompted to enter your password in order to install necessary dependencies."

sudo apt-get install build-essential libgtk2.0-dev libssl-dev libdb4.7-dev libdb4.7++-dev libboost-all-dev
sudo apt-get build-dep libwxgtk2.8-dev

mkdir bitcoin || true
cd bitcoin

[ -e wxWidgets.tar.gz ] || wget "http://biolpc22.york.ac.uk/pub/Daily_HEAD/wxWidgets.tar.gz"
[ -e wxWidgets ] || tar -xvzf wxWidgets.tar.gz
cd wxWidgets
./configure
make -j3
sudo make install
sudo ldconfig
cd ..

[ -e miniupnpc*.tar.gz ] || wget "http://miniupnp.tuxfamily.org/files/download.php?file=miniupnpc-1.5.tar.gz"
[ -e miniupnpc*/ ] || tar -xvzf *miniupnpc*.tar.gz
cd *miniupnpc*/
make
sudo make install
cd ..

#for some reason, github's certificate doesn't work:
[ -e bitcoin*.tar.gz ] || wget --no-check-certificate "https://www.github.com/bitcoin/bitcoin/tarball/v0.3.21"
[ -e bitcoin*/ ] || tar -xvzf "v0.3.21"
cd bitcoin*/
make -f makefile.unix
#optional:
strip bitcoin
echo "Bitcoin is now compiled : '$PWD/bitcoin'"
echo "Launch bitcoin now? (y/n)"
read -n1 r
[[ "$r" = y ]] &amp;&amp; ./bitcoin
cd ..
</code></pre>

CC BY-SA 3.0
2011-09-03T23:53:11.390Z
2011-09-03T23:53:11.390Z
David Perry
<p>We have <a href="http://lickthesalt.com/2010/08/19/compiling-bitcoin-on-ubuntu-10-04-lucid/comment-page-1/#comment-299" rel="nofollow noreferrer">this detailed tutorial for Lucid Lynx</a>, but somehow it doesn't work for Natty. </p>

<p>We also have <a href="https://bitcoin.stackexchange.com/questions/416/how-do-i-build-bitcoin-from-source-in-linux">a similar question</a> but it is too broad and the solution there isn't complete enough to work.</p>

<p>I created this question asking for a tutorial that will work on any freshly installed Natty.</p>

CC BY-SA 3.0
2011-09-03T23:17:00.650Z
Do you know what goes wrong?
David Schwartz
CC BY-SA 3.0
2011-09-04T01:46:44.003Z
@David I posted as a comment on the tutorial for Lucid Lynx
Jader Dias
<client><development><ubuntu>
How to build Bitcoin from source on Ubuntu 11.04 Natty Narwhal?
Jader Dias
# How to build Bitcoin from source on Ubuntu 11.04 Natty Narwhal?

(Asked by: username_0 on 2011-09-03)

We have [this detailed tutorial for Lucid Lynx](http://lickthesalt.com/2010/08/19/compiling-bitcoin-on-ubuntu-10-04-lucid/comment-page-1/#comment-299), but somehow it doesn't work for Natty.

We also have [a similar question](https://bitcoin.stackexchange.com/questions/416/how-do-i-build-bitcoin-from-source-in-linux) but it is too broad and the solution there isn't complete enough to work.

I created this question asking for a tutorial that will work on any freshly installed Natty.

**Tags:** client, development, ubuntu

> **Comments:**
> **username_1**: Do you know what goes wrong?  
> **username_0**: @username_1 I posted as a comment on the tutorial for Lucid Lynx  

---

## 1 answers

### Answer by username_2 on 2011-09-03. Score: 7 | Accepted answer

[Wolciph](https://bitcointalk.org/index.php?action=profile;u=6020) over on the Bitcoin forums wrote a [bash script](http://pastebin.com/JLxKKpuq) specifically for 11.04. You haven't posted your specific build errors, but I'm guessing that the problem is with the wxWidgets lib and you'll probably have less issues when the main Bitcoin client eventually moves over to Qt (which I believe is in the works, correct me if I'm wrong). In case the link to the script eventually goes down, here it is:

```
#!/bin/bash
echo "DISCLAIMER: you are using this script at your own discretion! By typing 'c', you agree that you have read the script yourself and have understood it and that you will thus take full responsabilty in the eventuality that this script leads to any harm to you or your property. If you do not agree type 'n'"
read -n 1 r
[ "$r" = 'c' ] || exit 0

set -e

echo "You will be prompted to enter your password in order to install necessary dependencies."

sudo apt-get install build-essential libgtk2.0-dev libssl-dev libdb4.7-dev libdb4.7++-dev libboost-all-dev
sudo apt-get build-dep libwxgtk2.8-dev

mkdir bitcoin || true
cd bitcoin

[ -e wxWidgets.tar.gz ] || wget "http://biolpc22.york.ac.uk/pub/Daily_HEAD/wxWidgets.tar.gz"
[ -e wxWidgets ] || tar -xvzf wxWidgets.tar.gz
cd wxWidgets
./configure
make -j3
sudo make install
sudo ldconfig
cd ..

[ -e miniupnpc*.tar.gz ] || wget "http://miniupnp.tuxfamily.org/files/download.php?file=miniupnpc-1.5.tar.gz"
[ -e miniupnpc*/ ] || tar -xvzf *miniupnpc*.tar.gz
cd *miniupnpc*/
make
sudo make install
cd ..

#for some reason, github's certificate doesn't work:
[ -e bitcoin*.tar.gz ] || wget --no-check-certificate "https://www.github.com/bitcoin/bitcoin/tarball/v0.3.21"
[ -e bitcoin*/ ] || tar -xvzf "v0.3.21"
cd bitcoin*/
make -f makefile.unix
#optional:
strip bitcoin
echo "Bitcoin is now compiled : '$PWD/bitcoin'"
echo "Launch bitcoin now? (y/n)"
read -n1 r
[[ "$r" = y ]] && ./bitcoin
cd ..

```


---

