0% found this document useful (0 votes)
68 views2 pages

Appendix B Ns-3 Installation: Wireless Ad Hoc Networks Simulation Using ns-3, First Edition. 2020 TL On Research Group

The document outlines the 10 step process to install the ns-3 network simulator on Ubuntu/Debian/Mint Linux distributions. It includes downloading the package, extracting, installing dependencies, configuring, and running tests. It also lists additional packages needed for features like visualization and virtual machines.

Uploaded by

Finn Mertens
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
68 views2 pages

Appendix B Ns-3 Installation: Wireless Ad Hoc Networks Simulation Using ns-3, First Edition. 2020 TL On Research Group

The document outlines the 10 step process to install the ns-3 network simulator on Ubuntu/Debian/Mint Linux distributions. It includes downloading the package, extracting, installing dependencies, configuring, and running tests. It also lists additional packages needed for features like visualization and virtual machines.

Uploaded by

Finn Mertens
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

APPENDIX B

NS-3 INSTALLATION

The next are the steps to install ns-3, we recommend install on Linux distributions, the example is in
Ubuntu/Debian/Mint, for other operative systems view ns-nam installation. You can download other the
version only changing he version numbers on the links.(For this example the version is 3.XX)
Step 1: Download ns-allineone3.XX
1 https://www.nsnam.org/release/ns-allinone-3.XX.tar.bz2

Step 2: Copy ns-allineone3.XX in your Desktop or in a directiryt that you prefer.


Step 3: Extract the packet with the command:
1 tar xjf ns-allinone-3.XX.tar.bz2

Step 4: Open the console and install the next libraries:


1 sudo apt-get install gcc g++ python python-dev python3 python3-dev
2 python3-setuptoolsv mercurial bzr gdb valgrind gsl-bin libgsl0-dev
3 libgsl0ldbl git flex bison tcpdump sqlite sqlite3 libsqlite3-dev libxml2
4 libxml2-dev libgtk2.0-0 libgtk2.0-dev uncrustify doxygen graphviz imagemagick
5 texlive texlivelatex-extra texlive-generic-extra texlive-generic-recommended
6 texinfo dia texlive texlive-latex-extra texlive-extra-utils qt5-default
7 openmpi-bin openmpi-common openmpi-doc libopenmpi-dev texi2html
8 texlive-generic-recommended python-pygraphviz python-kiwi gdb valgrind
9 python-pygoocanvas libgoocanvas-dev pythonpygccxml uncrustify
10 doxygen graphviz imagemagick python3-sphinx dia gsl-bin libgsl-dev
11 libgsl23 libgslcblas0

Support for ns-3-pyviz visualizer. For ns-3.28 and earlier releases, PyViz is based on GTK+ 2,
GooCanvas, and GraphViz:
Wireless Ad hoc Networks Simulation using ns-3, First Edition. 91
By Universidad Nacional Copyright c 2020 Tlön Research Group
92 NS-3 INSTALLATION

1 apt-get install python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev ipython

For Ubuntu 18.04, python-pygoocanvas is no longer provided. The ns-3.29 release and later upgrades
the support to GTK+ version 3, and requires these packages:
1 apt-get install gir1.2-goocanvas-2.0 python-gi python-gi-cairo python-pygraphviz
2 python3-gi python3-gi-cairo python3-pygraphviz gir1.2-gtk-3.0 ipython ipython3

Step 5: Open the directory ns-allinone-3.XX


1 $ cd ns-allinone-3.XX

Step 6: Use the command ls to view the ns-3 archives


1 $ls

Step 7: Enter the next command in the terminal on the directory ns − allinone − 3.XX
1 $./build.py --enable-examples --enable-tests

If debugging is correct, you see the next message in your console:


1 "Build finished successfully"

Step 8 : Now debugging with the command .waf (go to ns 3.XX directory) and type:
1 $ ./waf -d debug --enable-examples --enable-tests configure

Step 9: Run the command .waf again


1 ./waf

Step 10: Make the test on all packets, with the following command
1 ./test.py

Additional Features:

A GTK-based graphic modules configuration system


1 apt-get install libgtk2.0-0 libgtk2.0-dev

To experiment with virtual machines and ns-3


1 apt-get install vtun lxc

Support for openflow module (requires some boost libraries)


1 apt-get install libboost-signals-dev libboost-filesystem-dev

For do it the installation on other Operative Systems follow the next link https://www.nsnam.
org/wiki/Installation

You might also like