Installing NOX OpenFlow Controller on Ubuntu 11.10

Installing NOX OpenFlow Controller on Ubuntu 11.10

Updated UB 11.10 post here

It is all pretty straight forward except for the default branch is zaku(stable) which has compilation issues. This switches the branch to destiny(unstable).

$dpkg –info nox-dependencies.deb $cd /etc/apt/sources.list.d
$sudo wget
$sudo apt-get update $sudo apt-get install nox-dependencies
$git clone git://
$cd nox

Make sure you run the destiny branch from within the Nox directory.
$git checkout -b destiny remotes/origin/destiny

To avoid the md5 lib errors I sudoed. The lib was linked but no avail.
$sudo ./
$mkdir build
$cd build
$sudo ../configure –with-boost-filesystem=boost_filesystem –with-boost-unit-test-framework=mt LDFLAGS=’-L/usr/include/openssl -lssl -lcrypto’
$sudo make
$cd src

Verify install with:
$./nox_core -h

Some dependencies that may be missed are:
$sudo apt-get install python-mako python-twisted swig libboost-dev

  1. rebeccarebecca04-21-2012

    Hi, i’ve been following the procedures above to install NOX. I currently having problem in sudo ../configure part… it says it openssl/md5.h is not found. How do get this? I open synaptic to find it, but i already have openSSL installed. What should i do now? Thank you!

  2. Brent SalisburyBrent Salisbury04-22-2012

    Hi Rebecca,
    Sounds like you are still on the ‘Zaku’ branch with dated libraries. Just need to switch to Destiny. I put up a screencast here.

    • rebeccarebecca04-22-2012

      thanks alot!

  3. rebeccarebecca04-22-2012

    hi! is me again! now i encounter another problem.
    when i enter git checkout -b destiny remotes/origin/destiny, i got this error.
    fatal: Not a git repository (or any of the parent directories): .git
    what is this error?

    • Brent SalisburyBrent Salisbury04-22-2012

      Heyas, CD into the directory after you clone to switch the branch. I think I left that out of the install steps on the post.

      git clone git://
      cd nox
      git checkout -b destiny remotes/origin/destiny

  4. yikeeyikee04-26-2012

    HI, I had follow the step shown above to install the NOX, while i’m installing the NOX until
    step: sudo apt-get install nox-dependencies. Following description pop up,
    The following packages have unmet dependencies:
    nox-dependencies : Depends: python-dev but it is not going to be installed
    Depends: python-dev but it is not going to be installed
    Depends: libssl-dev but it is not going to be installed
    N: Ignoring file ‘nox.list.1’ in directory ‘/etc/apt/sources.list.d/’ as it has an invalid filename extension
    N: Ignoring file ‘nox.list.1’ in directory ‘/etc/apt/sources.list.d/’ as it has an invalid filename extension
    E: Unable to correct problems, you have held broken packages.
    and i going to synaptic packet manager to install it individually, but i fail.
    So, what should i do next??

    • Brent SalisburyBrent Salisbury04-26-2012

      looks like you downloaded the list twice. I would rm /etc/apt/sources.list.d/nox.list.1 and then run ‘apt-get update’ and try again.

  5. yikeeyikee04-27-2012

    Hi, after trying to remove the nox.list 1 in source.d file. seem like the file can not be removed. Following description appear again.
    root@yikee-Vostro1510:/home/yikee# rm /etc/apt/source.list.d/nox.list.1
    rm: cannot remove `/etc/apt/source.list.d/nox.list.1′: No such file or directory.
    And i had try to remove it manually in source.list.d folder but there have no delete button for delete the file..

  6. G.VenkatG.Venkat06-22-2012

    I get the following error on running “”

    aclocal.m4:1739: AX_BOOST_UNIT_TEST_FRAMEWORK is expanded from… the top level error: possibly undefined macro: AC_DISABLE_STATIC
    If this token and others are legitimate, please use m4_pattern_allow.
    See the Autoconf documentation. error: possibly undefined macro: AC_LIBTOOL_DLOPEN error: possibly undefined macro: AC_PROG_LIBTOOL
    autoreconf: /usr/bin/autoconf failed with exit status: 1

    I have aclocal (GNU automake) 1.12, and autoconf (GNU Autoconf) 2.68 installed.

    can you please help me to resolve this? Thanks a lot. venkat

  7. KelvinKelvin07-13-2012

    Hi, Brent, I have a tricky question.
    I am currently a phD student, and my current research project is trying to integrate NOX with our own software.
    I try to add some code in the NOX/src/include, but unfortunately, I cannot compile, I already added the file names into directory’s, and sometimes it did compile, more precisely, if I only add one basic file, it did compile, but once I add several files into it, I got error like :

    libtool: link: g++ -fno-omit-frame-pointer -fno-strict-aliasing -Wall -Wno-sign-compare -Winit-self -Wformat-nonliteral -Wformat-security -g -O2 -Wl,-E -o .libs/nox_core components.xsd.o nox.xsd.o nox_main.o -Wl,–export-dynamic -L/usr/lib -lboost_unit_test_framework-mt -lboost_filesystem-mt -lssl ./builtin/.libs/ ./lib/.libs/ -Wl,-rpath -Wl,/usr/local/bin/builtin -Wl,-rpath -Wl,/usr/local/bin
    ./builtin/.libs/ undefined reference to `vigil::RuleNodeData::RuleNodeData()’
    collect2: ld returned 1 exit status
    make[4]: *** [nox_core] Error 1
    make[4]: Leaving directory `/home/kelvinzou/nox/src’
    make[3]: *** [all-recursive] Error 1
    make[3]: Leaving directory `/home/kelvinzou/nox/src’
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/home/kelvinzou/nox/src’
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/kelvinzou/nox’
    make: *** [all] Error 2

    I did make clean, and ./configure before make every time, do you have any idea what is wrong here?
    Many thanks!

  8. vamsivamsi10-09-2012

    Brent, i ran into an issue while installing NOX on Linux 11.04. It happens while executing “git clone git://” . It says connection couldnt be established.
    There is no firewall and no ports are blocked anywhere. Please help as its a dead end for me now.