I have skip the
downloading of ns2 and installation of ubuntu . Hope you have done it.Now,start
the installation of ns2:-
Open the terminal(ctrl+alt+t) in ubuntu, follow these commands :-
1.sudo apt-get update (it will install updates)
2.sudo apt-get install build essential autoconf automake (install software which are required to install NS2)
3.sudo apt-get install perl x-graph libxt-dev libx11-dev libxmu-dev (install software which are required to install NS2)
4.cd/home/rajputs/ns-allinone-2.35 (change directory where NS2 is stored.)
5.sudo ./install (install NS2)
6.gedit /home/rajputs/.bashrc (edit text file to enable path )
7.Then add the following text at the end line:-
export PATH=$PATH:/home/udaysingh/ns-allinone-2.35/bin:/home/udaysingh/ns-allinone-2.35/tcl8.5.10/unix:/home/udaysingh/ns-allinone-2.35/tk8.5.10/unix
export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/udaysingh/ns-allinone-2.35/otcl-1.14:/home/udaysingh/ns-allinone-2.35/lib
export
TCL_LIBRARY=$TCL_LIBRARY:/home/udaysingh/ns-allinone-2.35/tcl8.5.10/library
And save the file.
8.cd /home/udaysingh
9.source .bashrc
10.Now type ns in your terminal (verifying whether NS2 is installed or not)
if it shows %
means your NS2 is installed and ready to use.
No comments:
Post a Comment