master
Raw Download raw file

Title: Namecoin on Ubuntu Date: 2011-11-26 00:00 Category: Tools Tags: anonymization, bitcoin, cloud, namecoin, ubuntu Slug: namecoint-on-ubuntu Author: bryfry Summary: Setup Namecoint on Ubuntu

{% img right http://i.imgur.com/RJTsK.jpg 150 150 dot-bit %}

So I setout to try a setup of Namecoin, the sibling to Bitcoin that is used for name/value storage and is the foundation for the dot-bit project. The dependencies were not explicitly laid out in the README so I wrote up the things I found I needed. Hopefully someone else doing the same thing will not have to do as much searching as I did.

  • Setup: namecoin version 0.3.24.64-beta

  • Target: Ubuntu 11.10 (x64), Amazon EC2 (Server) and Desktop

    :::bash sudo apt-get install git build-essential libssl-dev
    libdb4.7++-dev libboost-dev libboost-system-dev
    libboost-filesystem-dev libboost-program-options-dev
    libboost-thread-dev libglibmm-2.4-dev git clone git://github.com/vinced/namecoin.git cd namecoin/src make -f makefile.unix USE_UPNP=

I built my install list from the headers that were missing from a mostly generic 11.10 install. The list of the errors I came across are below. Shoot me a line if anyone comes across other packages that need added to the list.

If you get this far you can start running namecoind which is well documented here: Post Install

If you have compilation errors you can read more after the jump.

Compilation error - libssl

In file included from auxpow.cpp:4:0:
headers.h:37:28: fatal error: openssl/buffer.h: No such file or directoy
compilation terminated.

Solution - libssl

:::bash
sudo apt-get install libssl-dev

Compilation error - libdb

In file included from auxpow.cpp:4:0:
headers.h:43:20: fatal error: db_cxx.h: No such file or directory
compilation terminated.

Solution - libdb

:::bash
sudo apt-get install  libdb4.7++-dev

If that fails … For some reason libdb4.7++-dev is not in the 11.10 server repositories, probably because the 4.7 and 4.7++ dev libraries have some conflicts. My workaround was to get 4.7++ and then manually install the 4.7++-dev.deb from launchpad. This is unstable and apt-get -f install will remove 4.7++-dev but for the compilation I didn’t have any extra issues. When I ran the install on my desktop 11.10 libdb4.7++-dev was in the repositories so you only get this error 11.10 server :|.

:::bash
wget http://launchpadlibrarian.net/66419156/libdb4.7%2B%2B-dev_4.7.25-10ubuntu1_amd64.deb
sudo dpkg -i --force-all libdb4.7++-dev_4.7.25-10ubuntu1_amd64.deb

Compilation error - libboost

/usr/bin/ld: cannot find -lboost_system
/usr/bin/ld: cannot find -lboost_filesystem
/usr/bin/ld: cannot find -lboost_program_options
/usr/bin/ld: cannot find -lboost_thread
/usr/bin/ld: cannot find -lgthread-2.0

Solution - libbost

:::bash
sudo apt-get install libboost-system-dev
sudo apt-get install libboost-filesystem-dev
sudo apt-get install libboost-program-options-dev
sudo apt-get install libboost-thread-dev
sudo apt-get install libglibmm-2.4-dev

Resources used: Bluish Coder