Install NS3
Install NS3 (ns-allinone-3.17) on Ubuntu 12.04/14.04 for beginners
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.
- sudo apt-get install gcc g++ python
- sudo apt-get install gcc g++ python python-dev
- sudo apt-get install mercurial
- sudo apt-get install bzr
- sudo apt-get install gdb valgrind
- sudo apt-get install gsl-bin libgsl0-dev libgsl0ldbl
- sudo apt-get install flex bison libfl-dev
- sudo apt-get install g++-3.4 gcc-3.4
- sudo apt-get install tcpdump
- sudo apt-get install sqlite sqlite3 libsqlite3-dev
- sudo apt-get install libxml2 libxml2-dev
- sudo apt-get install libgtk2.0-0 libgtk2.0-dev
- sudo apt-get install vtun lxc
- sudo apt-get install uncrustify
- sudo apt-get install doxygen graphviz imagemagick
- sudo apt-get install texlive texlive-extra-utils texlive-latex-extra
- sudo apt-get install python-sphinx dia
- sudo apt-get install python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev
- sudo apt-get install libboost-signals-dev libboost-filesystem-dev
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
Post a Comment