Install NS3

Install NS3 (ns-allinone-3.17) on Ubuntu 12.04/14.04 for beginners

Installation steps for NS3 (ns-allinone-3.17):
Follow the given steps for the installation of NS-3. First install some dependencies to enable the NS-3 execution environment on your Ubuntu 12.04/14.04 LTS machine.
  1. sudo apt-get install gcc g++ python
  2. sudo apt-get install gcc g++ python python-dev
  3. sudo apt-get install mercurial
  4. sudo apt-get install bzr
  5. sudo apt-get install gdb valgrind
  6. sudo apt-get install gsl-bin libgsl0-dev libgsl0ldbl
  7. sudo apt-get install flex bison libfl-dev
  8. sudo apt-get install g++-3.4 gcc-3.4
  9. sudo apt-get install tcpdump
  10. sudo apt-get install sqlite sqlite3 libsqlite3-dev
  11. sudo apt-get install libxml2 libxml2-dev
  12. sudo apt-get install libgtk2.0-0 libgtk2.0-dev
  13. sudo apt-get install vtun lxc
  14. sudo apt-get install uncrustify
  15. sudo apt-get install doxygen graphviz imagemagick
  16. sudo apt-get install texlive texlive-extra-utils texlive-latex-extra
  17. sudo apt-get install python-sphinx dia
  18. sudo apt-get install python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev
  19. sudo apt-get install libboost-signals-dev libboost-filesystem-dev
If any package library is not found then go to software solution center and install all package and library clearly.
Now download the package of NS-3 from its official website:
http://www.nsnam.org/ns-3-17/
Extract the downloaded package and go to it via terminal, then run some executable files given in subfolder: like as
cd /home/user_name/Documents/ns-allinone-3.17
./build.py
chnage the directory : cd /home/user_name/Documents/ns-allinone-3.17/ns-3.17
./test.py
Configure the waf using the following commands once during installation:
./waf configure
./waf
NS3 enables support for animation with the tools NetAnim and support for graphs using GnuPlot tool.
For enabling gnuplot run the commands:
sudo apt-get install gnuplot
sudo apt-get install gimp
sudo apt-get install qt4-dev-tools
To install NetAnim support run the commands:
Go to the NetAnim folder and run the following commands to enable support for animation tool:
make clean
qmake NetAnim.pro
make

Comments

Popular posts from this blog

Installing Qt Jambi For java

How to Install NS All In One 2.35 in Ubuntu 12.04

What Is Tomcat Default Administrator Password ?