NS
is a event simulator, which can be used primarily for networking research. It
provides support for simulation of TCP, routing, and multicast protocols over
both wired and wireless networks.
NS can be installed on computers that run on Windows and Unix/Linux. Most use it on Linux system. This post will help you in installing Network Simulator 2 version NS2.35 in Fedora 16.
NS can be installed on computers that run on Windows and Unix/Linux. Most use it on Linux system. This post will help you in installing Network Simulator 2 version NS2.35 in Fedora 16.
Install
Fedora 16 using a DVD ISO (if you install it using a CD ISO, then you have to
download few other packages and install them)
Installing
the other Packages (if you install it using a CD ISO), in the following way:
Open
terminal and become root by typing:
su
su
First
we need to install all the prerequisites of ns starting with our C++ compiler:
yum install gcc-c++
yum install tcl-devel
yum install libX11-devel (that's one-one)
yum install libXt-devel
yum install gcc-c++
yum install tcl-devel
yum install libX11-devel (that's one-one)
yum install libXt-devel
Next
step, Download the all-in-one package of any one of the following NS Versions
ns-allinone-2.35
Here
or
ns-allinone-2.34
Here
Other
Versions of NS2 can be found here: http://sourceforge.net/projects/nsnam/files/allinone/
Next,
go to the directory where you downloaded the NS tar file and copy it to where
you want it to be installed.
Going
back to the Terminal, navigate to the directory where you copied
the ns-allinone-2.35.tar file.
Uncompress
the ns2 file by executing the following commands:
tar
zxvf ns-allinone-2.35.tar
or
gzip
-d ns-allinone-2.31.tar.gz
Now
execute following in the Terminal:
cd
ns-allinone-2.35
./install
Once
the installation succeeded, then the PATH information will be shown in the
screen by the NS2
Copy
the PATH and LD_LIBRARY_PATH Variable to ”.bash_profile” file.
Setting the PATH information in .bash_profile
Open
.bash_profile file (vim .bash_profile).
There
will be a PATH Variable already available in the .bash_profile file, just copy
the PATH information from the NS2 installation and append it over the existing
PATH variable (Don’t forgot to put a separator : between each path)
export PATH=$HOME/bin:<Put a
colon [:] and Place your paths here>
export LD_LIBRARY_PATH=<place
the LD_LIBRARY_PATHS> here.
Once done, save the file and close,
execute the command
source .bash_profile
Once all these done, try “ns” command in Terminal (if you see a %
indicates ns is installed successfully) or “nam” command (a animation window will be opened).
Thanks Hema
ReplyDelete