NS3 Installation


INSTALLING NS3 IN UBUNTU 16.4
 ns-3 is a network simulator for Internet systems, targeted primarily for research and educational use.You should install ns3 on any linux platform like ubuntu.If you want help about how to install ubuntu using pendrive you can refer to this link.

once ubuntu is installed run following command opening your terminal(ctrl+alt+T).

To install prerequisites-

sudo apt-get install gcc g++ python python-dev mercurial bzr gdb valgrind gsl-bin libgsl0-dev flex bison tcpdump sqlite sqlite3 libsqlite3-dev libxml2 libxml2-dev libgtk2.0-0 libgtk2.0-dev uncrustify doxygen graphviz imagemagick texlive texlive-latex-extra texlive-generic-extra texlive-generic-recommended texinfo dia texlive texlive-latex-extra texlive-extra-utils texlive-generic-recommended texi2html python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev python-pygccxml


 (now make sure you have not run sudo su to be superuser)
Downloading NS-3(ns-3 version 3.26)
    cd
    mkdir ns3
    cd ns3
    wget http://www.nsnam.org/release/ns-allinone-3.26.tar.bz2
    tar xjf ns-allinone-3.26.tar.bz2
    cd ns-allinone-3.26/
   ls


Then you can find build.py along with other files.
Then to build the examples in ns-3 run

   ./build.py --enable-examples --enable-tests

If the build is successful then it will give output
 "Build finished successfully".(clap for yourself)

 Now run the following command to configure with waf(build tool)

cd ns-3.26

 ./waf -d debug --enable-examples --enable-tests configure
To build with waf(optional)

./waf

To test everything allright

./test.py

If the tests are ok the installation is done. :)

Comentarios