Install ns-3.32 on Ubuntu 20.04
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo add-apt-repository ppa:rock-core/qt4
$ sudo apt update
$ sudo apt upgrade
$ sudo apt-get install gcc g++ python python-dev libgtk-3-dev wireshark gnuplot
$ sudo apt install qt4-dev-tools libqt4-dev
$ sudo apt install libqtcore4 libqtgui4
$ sudo apt install doxygen valgrind sqlite3
$ sudo apt-get install libgsl-dev
$ sudo apt-get install pkg-config
$ sudo apt-get install graphviz
$ sudo apt-get install libgcrypt20-dev
$ sudo apt-get install lldpd snmp
$ sudo apt-get install dpdk-dev libdpdk-dev dpdk
$ sudo apt-get install castxml
$ sudo apt-get install mpi
$ pip3 install pygccxml
$ pip3 install graphviz
$ pip3 install kiwi
$ tar xjf ns-allinone-3.32.tar.bz2
$ cd ns-allinone-3.32
$ cd ns-3.32
$ export CPPFLAGS="-Wno-error"
$ ./waf configure --enable-examples --enable-tests
$ ./waf build
This is a step by step recipe for installing ns-3.32, the network simulator, on Ubuntu 20.04, including the compiler, Python, and supporting packages it needs to build.
Pinning a specific ns-3 version and OS makes results reproducible, which matters for research. Newer ns-3 releases change some dependencies, so follow the notes that match your version.

Comments
Post a Comment