~ Ncdc ~

Yoran Heling
projects@yorhel.nl
home - git repos
= donate =paypal - bitcoin
= pgp =key - mit
7446 0D32 B808 10EB A9AF A2E9 6239 4C69 8C27 39FA
Cute decorative scissors, cutting through your code.

Ncdc Installation Instructions

General instructions

Building from source

In theory, the following instructions should work everywhere:

In practice, however, this does not always work and may not always be the prefered method of installation. On this page I try to collect instructions for each OS and distribution to make the installation process a bit easier for everyone.

If your system is missing from this page or if you're still having trouble, don't hesitate to join the support hub at adc://dc.blicky.net/ or send me a mail at projects@yorhel.nl. Contributions to this page are of course highly welcomed as well. :-)

Statically linked binaries

If you just want to get ncdc running without going through the trouble of compiling and/or installing it, I also offer statically linked binaries:

To use them, simply download and extract the tarball, and then run ./ncdc on the command line.

The binaries include all the required dependencies and are linked against musl, so they should run on any Linux machine with the right architecture. If you want binaries for an other OS or architecture, please bug me and I'll see what I can do.

System-specific instructions

Android

An convenient installer is available for Android 2.3 and later, which makes use of the static binary.

Arch Linux

Ncdc is available on AUR, to install it you can use your favorite AUR-installer. If you don't have a favorite, go for the manual approach:

  wget https://aur.archlinux.org/packages/nc/ncdc/ncdc.tar.gz
tar -xf ncdc.tar.gz
cd ncdc
makepkg -si

Fedora

There's a package available for Fedora.

Alternatively, I also have packages on the Open Build Service.

FreeBSD

Ncdc is available in the Ports Collection. To install, make sure your collection is up-to-date and install the Port as any other:

  cd /usr/ports/net-p2p/ncdc
make install clean

Gentoo

Ncdc is available in the Portage tree, so installation is trivial:

  emerge ncdc

Mac OS X

Ncdc is available in MacPorts and Homebrew.

To install from MacPorts, follow the instructions on installing MacPorts if you haven't done so already, then open a terminal and run the following magical command:

  sudo port install ncdc

OpenIndiana

This has been tested on OpenIndiana Build 151a Server, but may work on other versions as well. Compiling from source is your only option at the moment. First install some required packages (as root):

  pkg install gcc-3 glib2 gnutls gettext header-math perl-510/extra

Then, fetch the ncdc source tarball, extract and build as follows:

  wget http://dev.yorhel.nl/download/ncdc-1.19.tar.gz
tar -xf ncdc-1.19.tar.gz
cd ncdc-1.19
export PATH="$PATH:/usr/perl5/5.10.0/bin"
./configure --prefix=/usr LDFLAGS='-L/usr/gnu/lib -R/usr/gnu/lib'
make

And finally, to actually install ncdc, run make install as root. You can safely revert $PATH back to its previous value if you wish, it was only necessary in order for ./configure and make to find pod2man.

OpenSUSE

Get the package from PackMan: Select your openSUSE release and hit the "1 click install" button.

Alternatively, I also have packages on the Open Build Service, but I suspect their quality isn't really on the same level as those on PackMan because I am not an openSUSE developer. :-)

Ubuntu & Debian

The preferred way of installing ncdc on Ubuntu or Debian is to use the packages provided on the Open Build Service. Select your distribution and follow the instructions. The listed commands should be run with superuser privileges; To get a root shell on Ubuntu type sudo -s. When installing the package, you may get a warning about how the package is not authenticated or verified, this can be safely ignored. Just confirm the installation when prompted whether it should continue or not.

You only have to follow the above steps once, newer versions will be installed automatically with regular system updates.

Building from source

In the event that there is no up-to-date package available for your version, you can also try to compile ncdc from source. To do so, first install the required libraries:

  sudo apt-get install libbz2-dev libsqlite3-dev libncurses5-dev\
libncursesw5-dev libglib2.0-dev libgnutls-dev zlib1g-dev

Then run the following commands to download and install ncdc:

  wget http://dev.yorhel.nl/download/ncdc-1.19.tar.gz
tar -xf ncdc-1.19.tar.gz
cd ncdc-1.19
./configure --prefix=/usr
make
sudo make install

Windows (Cygwin)

Surprisingly enough, ncdc can be used even on Windows, thanks to Cygwin. If you haven't done so already, get setup.exe from the Cygwin website and use it to install the following packages:

Then open a Cygwin terminal and run the following commands to download, compile, and install ncdc:

  wget http://dev.yorhel.nl/download/ncdc-1.19.tar.gz
tar -xf ncdc-1.19.tar.gz
cd ncdc-1.19
./configure --prefix=/usr
make install