Setup Nox repo for ânox-dependenciesâ package
$ cd /etc/apt/sources.list.d/
$ wget http://openflowswitch.org/downloads/debian/nox.list
$ apt-get update
$ apt-get install nox-dependencies
Install dependencies:
$ apt-get install libtbb-dev
$ apt-get install libboost-serialization-dev libboost-all-dev
check swig version(if swig version is 2.0.. remove it):
$ aptitude show swig
$ aptitude remove swig2.0
Install swig1.3
$dpkg -i swig_1.3.40-2ubuntu1_i386.deb
Intall nox-classic:
$ cd /home/cbg
$ git clone http://github.com/noxrepo/nox-classic
$ cd nox-classic
$ ./boot.sh
If it hints"autoreconf:automake failed with exit status 1"
$ sudo gedit src/Make.var
At the 56th line,change the following code:
pkglib_SCRIPTS = $(NOX_RUNTIMEFILES) $(NOX_PYBUILDFILES)
nto:
pkgdata_SCRIPTS = $(NOX_RUNTIMEFILES) $(NOX_PYBUILDFILES)
$ mkdir build
$ cd build
$ ../configure
$ make
At the time, you may see the make errors, and do it as follow:
$ sudo gedit src/nox/lib/netinet/netinet_wrap.cc
At the beginning of this code, add a line:
using namespace std;
Just make again:
$ make
Check if install succeed
$ cd nox-classic/build/src
$ ./nox_core -h
Start Nox
$ cd nox-classic/build/src
$ ./nox_core -i ptcp:6633 monitoring
Install nox GUI:
$ sudo apt-get install python-qt4-sql
$ cd nox-classic/src
$ ./nox_core âv âi ptcp:6633 monitoring
Start GUI:
$ cd nox-classic/src
$ ./nox-gui.py