Monday, January 2, 2012

Building bitcoin-qt from source on Ubuntu 11.10 Oneiric

These are the steps that worked for me on Ubuntu 11.10 Oneiric to build
bitcoin-qt (the "official" bitcoin GUI).

git clone https://github.com/bitcoin/bitcoin
cd bitcoin
sudo aptitude install bitcoind qt4-qmake libqt4-dev build-essential
libboost-dev libboost-system-dev libboost-filesystem-dev
libboost-program-options-dev libboost-thread-dev libssl-dev
libdb4.8++-dev libminiupnpc-dev
qmake USE_DBUS=1 USE_UPNP=0
make
# then to run the executable gui
bitcoin-qt

4 comments:

  1. Thanks for gathering the info altogether! However, in my Ubuntu 11.10 oneiric, the package libdb4.8++-dev cannot be found :(

    I installed libdb4.8-dev but then the "make" says :
    src/headers.h:39:20: fatal error: db_cxx.h: file or directory doesn't exist.

    I saw that libdb5.1++-dev exists... but the 'readme' file warns about using the 5.x version of libdb...

    Any idea? Thanks!

    ReplyDelete
  2. Ok, it looks like the readme warned against version 5 for MacOS... anyway, installing it solves the problem. (sudo apt-get install libdb++-dev will install it). Thanks!

    Now I have another problem with libminiupnpc-dev...

    dpkg: error when processing /var/cache/apt/archives/miniupnpc-dev_1.5-ppa2~oneiric_i386.deb (--unpack):
    trying to overwrite `/usr/lib/libminiupnpc.so.5', which exists also in the package libminiupnpc5 1.5-2ubuntu2

    I install the package miniupnpc, but I receive the following error when compiling net.cpp:

    src/net.cpp:18:32: fatal error: miniupnpc/miniwget.h: file or directory does not exist

    ReplyDelete
  3. I had to install this version of miniupnpc :)

    http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.5.tar.gz

    ReplyDelete
  4. Yesss. thanks bro, that worked for me!!!!!!!

    ReplyDelete