LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Blogs > 02amol
User Name
Password

Notices

Rate this Entry

installing ns2.29 in fedora 13 successfully..

Posted 11-21-2011 at 06:31 AM by 02amol

i used ns-allinone-2.29.tar.gz and fedora 13 as the os:
here are the steps for successfull installation:

1. You need to edit two of your repository files: (1) /etc/yum.repos.d/fedora.repo and (2)
/etc/yum.repos.d/fedora-updates.repo. While editing comment (put #) all the lines that start with
'mirrorlist' and un-comment (delete #) all the lines that start with 'baseurl'. Save both the files and
close them.

2. Once the step given above is successfully done now its turn to edit the file located at /etc/hosts.
Delete what ever is written in this file and replace both the lines with the following:
80.239.156.215 mirrors.fedoraproject.org 213.129.242.84 mirrors.rpmfusion.org
Save the file named hosts and close it now

3.run the following commands in su:
yum install autoconf
yum install automake
yum install compat-gcc-34-c++(this is very important as gcc3.4 is required for successful installation)
export CC=gcc34
export CXX=g++34
yum install libtools
yum install libX11-devel
yum install xorg-x11-proto-devel
yum install libXt-devel
yum install libXmu-devel

4. you must also patch tk8.4.11 folder with the follwowing patch for nam to run properly
tk-8.4-lastevent.patch
copy the patch file in the folder /home/blahblah/ns-allinone-2.29/tk-8.4.11
and then run the command : patch -p0 tk-8.4-lastevent.patch from this folder

5. you must also ammend agent.h in nam1.11 line 73 ...change
NULL to 0
this is so that nam builds without errors.

6. finally you run ./install from /ns-allinone-2.29

7. wait till it installs successfully :
Go to /etc folder from terminal and type:
gedit ~/.bashrc
This will open the bashrc file and now you can edit in this file
Remember to replace user/local by your installation path like I have mentioned in the lines
below: At the end of the file, type the following (do not forget to give your installation path):
# LD_LIBRARY_PATH
OTCL_LIB=/home/ankit/Desktop/ns-allinone-2.34/otcl-1.13
NS2_LIB=/home/ankit/Desktop/ns-allinone-2.34/lib
X11_LIB=/home/X11R6/lib
USR_LOCAL_LIB=/home/ankit/Desktop/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:
$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB
# TCL_LIBRARY
TCL_LIB=/home/ankit/Desktop/ns-allinone-2.34/tcl8.4.18/library
USR_LIB=/home/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
# PATH
XGRAPH=/home/ankit/Desktop/ns-allinone-2.34/bin:/home/BilalAKhan/ns-allinone-
2.34/tcl8.4.18/unix:/home/ankit/Desktop/ns-allinone-2.34/tk8.4.18/unix
NS=/home/ankit/Desktop/ns-allinone-2.34/ns-2.34/
NAM=/home/ankit/Desktop/ns-allinone-2.34/nam-1.14/
PATH=$PATH:$XGRAPH:$NS:$NAM

Once you have written the code above. Save the file and write the folowing command on the
terminal:
source ~/.bashrc
Once this step is done, try validating your installed NS-2 by writing ./validate on the terminal.
It will take a long time till it completely validates the system. With me it took approx 1.5 hours to
validate.
13. Once the successful validation is done, NS-2 is ready to use. On the terminal type 'ns' and a %
sign will appear. If you see this sign, which means that NS-2 is ready to use. Go to the tutorials given
on the web and start using NS-2.
Posted in Uncategorized
Views 5504 Comments 2
« Prev     Main     Next »
Total Comments 2

Comments

  1. Old Comment
    i forgot one step....most probably xgraph does not get built during installation
    we need to go into the xgraph folder and apply this patch......

    http://www.linuxquestions.org/questi...2-34-a-862233/
    Posted 11-21-2011 at 07:53 AM by 02amol 02amol is offline
  2. Old Comment
    initially u have started with installing ns2.29 but u have given paths for ns2.34

    ###How ridiculous is this###
    Posted 08-20-2014 at 04:48 AM by Riaz Khan Riaz Khan is offline
 

  



All times are GMT -5. The time now is 01:48 PM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration