Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

NS3 Installation Guide (Tested on Ubuntu 16.

04)

• Open terminal and install necessary packages


$ sudo apt-get update
$ sudo apt-get install gcc g++ python python-dev mercurial bzr gdb valgrind gsl-bin libgsl0-dev
libgsl0ldbl flex bison tcpdump sqlite sqlite3 libsqlite3-dev libxml2 libxml2-dev libgtk2.0-0 libgtk2.0-
dev uncrustify doxygen graphviz imagemagick python-pygraphviz python-kiwi python-pygoocanvas
libgoocanvas-dev python-pygccxml

• Extract ns-allinone-3.25.tar.bz2
• Open terminal go to ns-allinone-3.25 folder location and write command
$ cd ns-allinone-3.25
$ chmod +x build.py
$ ./build.py --enable-examples --enable-tests

• It will take time to run the command at the end you should see “Build finished successfully”
$ cd ns-3.25
$ ./waf -d debug --enable-examples --enable-tests configure
$ ./waf

• To check the installation run this command


$ ./test.py

• Now you should install NetAnim. run thesis commands,


$ sudo apt-get install mercurial
$ sudo apt-get install qt4-dev-tools

• then
$ cd netanim
$ make clean
$ qmake NetAnim.pro
$ make

• This should create an executable named "NetAnim" in the same directory. To start the
application just type "./NetAnim"

You might also like