Linux

Ubuntu and Debian PPA

You can get a ready to install package via Launchpad. The following software sources need to be added to your system:

(Note: replace trusty (14.04) with xenial (16.04) or bionic (18.04) depending on your distribution)

This is most easily done by executing:

sudo add-apt-repository ppa:gnode/nix
sudo apt-get update
sudo apt-get install libnix-dev

Fedora copr

A fedora 29+ package can be installed via copr. To do so:

sudo dnf copr enable jgrewe/nix
sudo dnf install nixio-devel

Build NIX from source under Ubuntu

If you decide to rather build NIX yourself you can follow these instructions.

Dependencies

In order to build the NIX library a recent C++11 compatible compiler is needed (g++ >= 4.8, clang >= 3.4) as well as the build tool CMake (>= 2.8.9). Further nix depends on the following third party libraries:

  • HDF5 (version 1.8.13 or higher)

  • Boost (version 1.49 or higher)

  • CppUnit (version 1.12.1 or higher)

Instructions

# 1 install dependencies
sudo apt-get install libboost-all-dev libhdf5-serial-dev libcppunit-dev cmake build-essential

**Note:** If the standard version of the boost libraries in your distribution is less than 1.49,
# manually install a version larger than 1.49 from the launchad (https://launchpad.net/~boost-latest/+archive/ubuntu/ppa)

# 2 clone NIX
git clone https://github.com/G-Node/nix
cd nix

# 3 create a build directory and build nix
mkdir build
cd build
cmake ..
make all

# 4 run the unit tests
ctest

# 5 install
sudo make install

In case building nix fails because libboost-** libraries are not found try the following:

# 3 create a build directory and build nix
mkdir build
cd build
cmake -DBoost_NO_BOOST_CMAKE=TRUE ..
make all