Appendix B Ns-3 Installation: Wireless Ad Hoc Networks Simulation Using ns-3, First Edition. 2020 TL On Research Group
Appendix B Ns-3 Installation: Wireless Ad Hoc Networks Simulation Using ns-3, First Edition. 2020 TL On Research Group
Appendix B Ns-3 Installation: Wireless Ad Hoc Networks Simulation Using ns-3, First Edition. 2020 TL On Research Group
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
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
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 7: Enter the next command in the terminal on the directory ns − allinone − 3.XX
1 $./build.py --enable-examples --enable-tests
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 10: Make the test on all packets, with the following command
1 ./test.py
Additional Features:
For do it the installation on other Operative Systems follow the next link https://www.nsnam.
org/wiki/Installation