In this article, our research professionals have highlighted the steps that are essentials to install the network simulator 3 in Ubuntu 16.04.
Step: 1 Install Dependency Packages
While implanting the below mentioned commands, we can install the required packages in Ubuntu 16.04 terminal window.
sudo apt install gcc g++ python python-dev
sudo apt install mercurial python-setuptools git
sudo apt install qt5-default
sudo apt install gir1.2-goocanvas-2.0 python-gi python-gi-cairo
python-pygraphviz python3-gi python3-gi-cairo python3-pygraphviz gir1.2-gtk-3.0 ipython ipython3
sudo apt install openmpi-bin openmpi-common openmpi-doc libopenmpi-dev
sudo apt install autoconf cvs bzr unrar
sudo apt install gdb valgrind
sudo apt install uncrustify
sudo apt install doxygen graphviz imagemagick
sudo apt install texlive texlive-extra-utils texlive-latex-extra texlive-font-utils texlive-lang-portuguese dvipng
sudo apt install python-sphinx dia
sudo apt install gsl-bin libgsl2 libgsl-dev
sudo apt install flex bison libfl-dev
sudo apt install tcpdump
sudo apt install sqlite sqlite3 libsqlite3-dev
sudo apt install libxml2 libxml2-dev
sudo apt install cmake libc6-dev libc6-dev-i386 libclang-6.0-dev llvm-6.0-dev automake
pip install cxxfilt
sudo apt install libgtk2.0-0 libgtk2.0-dev
sudo apt install vtun lxc
sudo apt install libboost-signals-dev libboost-filesystem-dev
Step: 2 Download Ns-3.29
Using this URL, https://www.nsnam.org/releases/ns-3-29/ we have to download the ns-3.29 packages.

Step: 3 Install Ns-3.29
Then, we have to install the packages based on ns-3.29 through the following steps. Firstly, the location has to be changed and then we have to install and verify the packages through the below mentioned commands.
cd /home/research/ns-allinone-3.29
sudo ./build.py

cd /home/research/ns-allinone-3.29/ns-3.29
sudo ./test.py

Feel free to contact us for any kind of research support regarding the ns3 research implementation.