How To Install Ns-2 in Fedora Linux OS
Step
1:
NS2
along with its supporting libraries and tools are available as ns-allinone
package.
From
the URL www.sourceforge.net, ns-allinone-2.30.tar.gz has been downloaded and stored
in the local machine directory /home/meena.
From the local machine with the IP address 192.168.72.74, the users can
download the package using the following command:
˜]$
/home/AMDI/ns-allinone-2.30.tar.gz ./
Step
2:
This
compressed package can be extracted and stored in a directory,
ns-allinone-2.30 by using the following command:
˜]$ tar -zxvf
ns-allinone-2.30.tar.gz
Step
3:
Change the directory from the current directory to
ns-allinone-2.30 directory. In that use the install script to install the
package.
˜]$ cd ns-allinone-2.30
Step
4:
ns-allinone-2.30]$./install
Step
5:
After the successful
installation, the path for bin, lib, Tcl, Tk and OTcl of the ns-allinone
package has to be set by including the appropriate environment variables of
bash shell in .bashrc file.
˜]$ vi .bashrc
Step
6:
NS2 Path Setting in Linux OS
PATH=$PATH:/home/ccna1/ns-allinone-2.30/bin:/home/ccna1/ns-\\allinone-2.30/tcl8.4.13/unix:/home/ccna1/ns-allinone-2.30/tk8.4.13/unix
LD_LIBRARY_PATH=/home/ccna1/ns-allinone-2.30/otcl-1.12:/home\\/ccna1/ns-allinone-2.30/lib
TCL_LIBRARY=/home/ccna1/ns-allinone-2.30/tcl8.4.13/export PATH
LD_LIBRARY_PATH TCL_LIBRARY
Step
7:
Then the .bashrc file can be read by the bash shell by
executing the following command:
˜]$ source .bashrc
./validate
This ends the installation of ns-allinone package.
Step
8:
Finally check whether NS2 is Installed Properly in your
system or not using the following Command in Terminal:
NS2
NAM
NS
No comments:
Post a Comment