Install Nifty
Dependencies
- Erlang OTP >17.0
 - libclang including the header files (libclang-dev)
 - clang compiler
 
In Ubuntu you can install the dependencies with this command:
sudo apt-get install libclang-dev libclang1 clangUnfortunaley Ubuntu installs libclang and libclang-dev in a place that is not
included in the standart search paths. This however can be easily fixed by setting the
some environment variables. The path Ubuntu installs those packages it /usr/lib/llvm-<version>.
If the installed version of the library is 3.4, then we can set the relevant environment variables
as follows:
export CPATH=/usr/lib/llvm-3.4/include 
export LIBRARY_PATH=/usr/lib/llvm-3.4/lib 
export LD_LIBRARY_PATH=/usr/lib/llvm-3.4/libInstallation
Clone Nifty from the official repository, change to the directory and run make:
git clone https://github.com/parapluu/nifty-contiki.git
cd nifty/
makeNow include Nifty in your ERL_LIBS path and you are ready to go.