Take a look about the installation of network simulator 2 over this article along with the guidance of our technical experts.
Ns2 Download and Modify
As the first process, we have to download the packages based on network simulator 2 using the below mentioned URL.
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.
export PATH=$PATH:/home/<yourusername>/ns-allinone-2.35/bin:/home/<yourusername>/ns-allinone-2.35/tcl8.5.10/unix:/home/<yourusername>/ns-allinone-2.35/tk8.5.10/unix
export LD_LIBRARY_PATH=/home/<yourusername>/ns-allinone-2.35/otcl-1.14:/home/<yourusername>/ns-allinone-2.35/lib
Subsequently, we have to execute the below mentioned command to save the changes what we have made.
source .bashrc
Ping us to acquire a lot about the installation of network simulator 2!!!