Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-09-2011, 11:47 PM   #1
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

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

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.


(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
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 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.

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

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

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

Step 7:

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

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
Senior Member
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
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,189

Rep: Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507
please stay current
fedora 15 and ns3.12
Old 08-23-2011, 01:09 AM   #4
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,705

Rep: Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294
The current ns2 version is ns-2.34. ( Or ns-2.35-RC8.)

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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:09 AM.

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