Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Latest commit

 

History

History
69 lines (44 loc) · 1.79 KB

build-debian.md

File metadata and controls

69 lines (44 loc) · 1.79 KB

DEBIAN BUILD NOTES

Some notes on how to build Namecoin daemon on Debian. Ubuntu should work similar to Debian as well.

Get the Namecoin source

sudo apt-get update
sudo apt-get install git
git clone https://github.com/namecoin/namecoin.git

Get the required packages

sudo apt-get install build-essential
sudo apt-get install libssl-dev
sudo apt-get install libboost-all-dev
sudo apt-get install libminiupnpc-dev
sudo apt-get install libglib2.0-dev libglibmm-2.4-dev

Install LibDB

Debian 7 (Wheezy) and later have packages for libdb5.1-dev and libdb5.1++-dev, but using these will break binary wallet compatibility, and is not recommended. The oldstable repository contains db4.8 packages. Add the following line to /etc/apt/sources.list, can use any official debian mirror.

sudo vi /etc/apt/sources.list
deb http://ftp.us.debian.org/debian/ oldstable main

To enable the change run

sudo apt-get update

And now you can install the libdb4.8 packages

sudo apt-get install libdb4.8-dev libdb4.8++-dev

Compile the source

You can now compile namecoind

cd namecoin/src
make namecoind 

Starting Namecoind

Run namecoind once, so that it initializes the files in ~/.namecoin directory

./namecoind 

Now create the namecoin.conf file

touch ~/.namecoin/namecoin.conf
chmod 600 ~/.namecoin/namecoin.conf

Open the namecoin.conf file and enter values for rpcuser and rpcpassword

vi ~/.namecoin/namecoin.conf
rpcuser=<type_here>
rpcpassword=<type_strong_passwd_here>

You should now be able to run namecoind

./namecoind -daemon

Get basic stats to confirm that your installation was successful (it takes a few minutes for namecoind to start)

./namecoind getinfo