Jump to: navigation, search

Build Namecoin From Source

Generic development compile instructions

WARNING: this method uses the latest development code from the git repo. It may be UNTESTED, you could LOSE COINS or corrupt your wallets. Back-up your wallet before using this code!

This produces several binaries including namecoind and namecoin-cli in the src directory.
git clone https://github.com/namecoin/namecoin-core.git
cd namecoin-core
./autogen.sh
./configure --without-gui
make

Dependencies

You can find a detailed list of dependencies for specific distributions and operating systems in their respective Bitcoin build-notes:


Windows

The EasyWinBuilder scripts for Bitcoin can be used for building the Namecoin clients, see https://github.com/phelix/easywinbuilder
There is an EasyWinBuilder thread both at the Namecoin forum as well as at the bitcointalk forum for technical support.

Tips for building from source

  • standard Namecoin/Bitcoin build notes are in with source ~/namecoin/build-*.txt
  • optionally building without upnp support make -f makefile.unix USE_UPNP=
  • Install libglib2.0-dev if you have the following error : /usr/bin/ld: cannot find -lgthread-2.0

OS X

Instructions for building Namecoin Core with or without GUI in OS X El Capitan (V10.11.x):
1.) Open Terminal.app and type llvm-g++ --version
If one or more version numbers appears, your compiler environment is already setup correctly. Proceed to step 2.
If a popup window appears, click "Install" and follow the instructions.
This starts the installation of the "Command Line Developer Tools". If it doesn't, type xcode-select --install and click "Install".
2.) Install Homebrew, see http://brew.sh/
3.) Install the dependencies (if you already did this in the past then simply update using brew upgrade)
For Namecoin Core with GUI:
brew install automake berkeley-db4 libtool boost --c++11 miniupnpc openssl pkg-config homebrew/versions/protobuf260 --c++11 qt5 libevent
For Namecoin Core without GUI:
brew install automake berkeley-db4 libtool boost --c++11 miniupnpc openssl pkg-config homebrew/versions/protobuf260 --c++11 libevent
4.) Create a new directory and cd into it, e.g.
mkdir mynamecoinbuild
cd mynamecoinbuild
5.) Get the source code.
For Namecoin Core with GUI:
Download the .zip or the .tar.gz file from https://github.com/namecoin/namecoin-core/releases/tag/nc0.13.99-name-tab-beta1
then uncompress to the directory created in step 4.
For Namecoin Core without GUI:
git clone https://github.com/namecoin/namecoin-core
cd namecoin-core
6.) Build.
Namecoin Core with GUI:
./autogen.sh
./configure
make
Namecoin Core without GUI:
./autogen.sh
./configure --without-gui
make

make comes up with lots of warning messages. Ignore.
After several minutes the build process finishes. There'll be three executables:
src/namecoind (without GUI) or src/namecoin-qt (with GUI)
src/namecoin-cli
src/namecoin-tx

Copy these three files to a different directory. Then cd into it and start
./namecoind
or
./namecoin-qt
Open a second Terminal.app window and watch the downloading of the blockchain:
./namecoin-cli getinfo



Known issues:
1) Some of the help messages and warnings may contain "Bitcoin" instead of "Namecoin".
2) Namecoin Core cannot open wallet.dat files older than v0.3.7x. There are workarounds for some versions. If Namecoin Core doesn't open your old wallet don't hesitate to ask for advice at https://forum.namecoin.info/viewforum.php?f=7
3) For more info on the GUI beta status see https://github.com/namecoin/namecoin-core/pull/67 and https://namecoin.org/download/betas/