While completing the process of downloading, we have to extract the Ns2 packages through clocking the extract here option and selecting the home folder.
Next to the extraction of Ns2 packages, we have to proceed with the modification of below mentioned lines.
ns-allinone-2.35/Makefile.in
ns-allinone-2.35/otcl-1.14/Makefile.in
nam-1.15/Makefile.in
xgraph-12.2/Makefile.in
Make the changes in the above makefiles
@CC@ to be replaced with gcc-4.8
@CPP@ to be replaced with g++-4.8
Ns2 Installation
As the consequent process, we have to open the new terminal window and implement the below mentioned commands to install network simulator 2.
cd ns-allinone-2.35/
./install
Then, we have to set the path through opening the new terminal window and implementing the following commands.
gedit .bashrc
Following that, we have to paste the below mentioned lines as the modification process.