Monday, March 23, 2015

Installing ns-2.35 in Fedora 21

Installing Ns2.35 in Fadora 21

This post will tell you how to install ns-2.35 in Fedora 21 64 bit OS…..
Step 1: Install all the necessary packages
$] sudo yum update
$] sudo yum install tcl tk gcc-c++ libX11-devel libXt-devel libXmu-devel

Step 2: unzip the software ns-xx.tar.gz
$] tar zxvf ns-allinone-2.35.tar.gz
$] cd ns-allinone-2.35/

Open the file
$] gedit ns-2.35/linkstate/ls.hin line number 137 change erase to this->erase as shown above…..
Save the file and give this command
$] ./install This will install all the packages as you see in the video. This process may be take upto 5 minutes.
Once installation is over now….
Setting the PATH
The following line is pasted in the PATH variable as shown in the video
$] gedit /home/pradeepkumar/.bash_profile
:/home/pradeepkumar/ns-allinone-2.35/bin:/home/pradeepkumar/ns-allinone-2.35/tcl8.5.10/unix:/home/pradeepkumar/ns-allinone-2.35/tk8.5.10/unixOnce the PATH is set, source the .bash_profile file as the new PATH will be reflected within the current terminal.
the command is
$] source /home/pradeepkumar/.bash_profile
now try
$ ns
$ nam
$ xgraph
to see whether the software is working or not.

1 comment:

  1. Dear sir/madam,

    While running ./install, it exits saying line 411:make: command not found.

    Please reply how to tackle this issue

    ReplyDelete