LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-09-2011, 11:47 PM   #1
venkatadri
LQ Newbie
 
Registered: Aug 2011
Posts: 26
Blog Entries: 3

Rep: Reputation: Disabled
ns-2 installation in fedora 8


hello , this venkatadri, Research Scholar, dept.Computer Science, Vikrama Simhapuri University.
i installed ns-allinone-2.34 in fedora 5 using the procedure:

Steps to Install ns2.34 in Fedora 8
Step 1:

Download ns-allinone-2.34.tar.gz from the following link
http://sourceforge.net/project/showf...ease_id=684492


Step 2:

Execute the following commands to install ns2.34 from the terminal. You must login as root.

$cp ns-allinone-2.34.tar /opt/
$cd /opt/
$tar -xzf ns-allinone-2.34.tar.gz
$cd ns-allinone-2.34
$./install


Step 3:

After a long wait and a whole lot of text, you should see the installation finish up with text like the following:

Please put /opt/ns-allinone-2.34/bin:/opt/ns-allinone-2.34/tcl8.4.18/unix:/opt/ns-allinone-2.34/tk8.4.18/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.

IMPORTANT NOTICES:

(1) You MUST put /opt/ns-allinone-2.34/otcl-1.13, /opt/ns-allinone-2.34/lib,
   into your LD_LIBRARY_PATH environment variable.
   If it complains about X libraries, add path to your X libraries
   into LD_LIBRARY_PATH.
   If you are using csh, you can set it like:
               setenv LD_LIBRARY_PATH <paths>
   If you are using sh, you can set it like:
               export LD_LIBRARY_PATH=<paths>

(2) You MUST put /opt/ns-allinone-2.34/tcl8.4.18/library into your TCL_LIBRARY environmental
   variable. Otherwise ns/nam will complain during startup.


After these steps, you can now run the ns validation suite with
cd ns-2.34; ./validate

For trouble shooting, please first read ns problems page
http://www.isi.edu/nsnam/ns/ns-problems.html. Also search the ns mailing list archive
for related posts.


Step 4:

To change PATH environment & others execute following commands in terminal.

$cd /etc
$gedit ~/.bashrc &


Step 5:

Add following lines at the end of bashrc file.

# LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/ns-allinone-2.34/otcl-1.13:/opt/ns-allinone-2.34/lib

# TCL_LIBRARY
export TCL_LIBRARY=$TCL_LIBRARY:/opt/ns-allinone-2.34/tcl8.4.18/library

# PATH
export PATH=$PATH:/opt/ns-allinone-2.34/bin:/opt/ns-allinone-2.34/tcl8.4.18/unix:/opt/ns-allinone-2.34/tk8.4.18/unix


Step 6:

To make the change in the path & others permanent, type the following command in terminal.
$ source ~/.bashrc

You can check what is written in your path by writing
$echo $PATH
$echo $LD_LIBRARY_PATH
$echo $TCL_LIBRARY


Step 7:

Now, the installation has been completed. If you try:
$ns

Then a "%" will appear on the screen. Type "exit" to quit the mode

after this it will display % when write % set ns[new Simulator] it is displayed cann't read ns_o4" what is the error please telle me answer
 
Old 08-10-2011, 05:42 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Please don't use old releases, Fedora is now on version 15. If you want help then upgrading will be the first thing most people will ask you to do.
 
Old 08-10-2011, 06:30 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
please stay current
fedora 15 and ns3.12
http://www.nsnam.org/wiki/index.php/Main_Page
 
Old 08-23-2011, 01:09 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The current ns2 version is ns-2.34. ( Or ns-2.35-RC8.)
http://www.isi.edu/nsnam/dist/releas....35-RC8.tar.gz


NS-3 is a completely different beast.


Fedora : # yum install \
gcc-c++ compat-gcc-34-c++ automake autoconf libtool libX11-devel \
libXext-devel libXau-devel libXmu-devel xorg-x11-proto-devel

Setting a PATH and LD_LIBRARY_PATH is not really required since ns-2.26.
The binaries ns and nam are statically compiled, and hard coded to find the paths.

..

Last edited by knudfl; 08-23-2011 at 01:12 AM.
 
  


Reply

Tags
ns2_fedora



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Fedora 12 Installation and Post-Installation Guide LXer Syndicated Linux News 0 11-18-2009 10:00 AM
LXer: Fedora 11 Installation and Post-Installation guide LXer Syndicated Linux News 1 06-11-2009 10:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:31 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
Open Source Consulting | Domain Registration