LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 07-08-2010, 01:24 AM   #1
vahitha
LQ Newbie
 
Registered: Jul 2010
Posts: 5

Rep: Reputation: 0
ns2.33 intallation and path setting


hello,
i want clear installation and path setting steps for installing ns2.33 in linux fedora 12.please any one of linux experts help me.thankyou.
vahitha
 
Old 07-08-2010, 03:39 AM   #2
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
Welcome to LQ. .. ..

All ns2 threads at LQ are tagged ns2.
LQ Search → Tag Name = ns2

Fedora 10 - 11 - 12 : post #3 here
http://www.linuxquestions.org/questi...11-a-817322/#3

Path : Either try with the path settings suggested, when
you have finished ' ./install ' for ns-allinone-2.33,
Or : install some very few files to a system path :
cd ns-allinone-2.33/otcl-1.13/ &&
./configure --prefix=/usr --enable-release --enable-devel
&& make , # make install
cd ../tclcl-1.19/ &&
./configure --prefix=/usr --enable-release --enable-devel
&& make , # make install
cd ../ns-2.34/
# make install
cd ../nam-1.14/
# make install
..

Last edited by knudfl; 07-08-2010 at 03:42 AM.
 
1 members found this post helpful.
Old 07-21-2010, 01:00 AM   #3
vahitha
LQ Newbie
 
Registered: Jul 2010
Posts: 5

Original Poster
Rep: Reputation: 0
hello sir,
thank you sir.
your instructions were helpful.
i followed following instructions to install ns2.33 in fedora 12

cd ns-allinone-2.33
./install

sudo gedit ~/.bashrc
#environment values for NS2/NAM
# LD_LIBRARY_PATH
OTCL_LIB=/your directory/ns-allinone-2.33/otcl-1.13
NS2_LIB=/your directory/ns-allinone-2.33/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB

# TCL_LIBRARY
TCL_LIB=/your directory/tcl8.4.18/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH
XGRAPH=/your directory/ns-allinone-2.33/bin:/your directory/ns-allinone-2.33/tcl8.4.18/unix:/your directory/ns-allinone-2.33/tk8.4.18/unix
NS=/your directory/ns-allinone-2.33/ns-2.33/
NAM=/your directory/ns-allinone-2.33/nam-1.13/
PATH=$PATH:$XGRAPH:$NS:$NAM

source ~/.bashrc
cd ns-2.33
./validate

now i cleared ns in installation.when i type ns whereever in commandpropt i can get %. but i m struggling with nam.when i type nam i got instruction like following.
[code omitted because of length]
: no event type or button # or keysym
while executing
“bind Listbox {
%W yview scroll [expr {- (%D / 120) * 4}] units
}”
invoked from within
“if {[tk windowingsystem] eq “classic” || [tk windowingsystem] eq “aqua”} {
bind Listbox {
%W yview scroll [expr {- (%D)}] units
}
bind Li…”

what steps should be follow to rectify this inconvinent.
please help sir
vahitha
 
Old 07-21-2010, 01:17 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
Please read post #2
REPEAT : Fedora 10 - 11 - 12 : post #3 here
http://www.linuxquestions.org/questi...11-a-817322/#3

QUOTE :
ns-allinone-2.3x also requires the tk-8.4-lastevent.patch :
http://bugs.gentoo.org/attachment.cgi?id=161242
..

cd ns-allinone-2.33/tk-8.4.18/
patch -p0 < tk-8.4-lastevent.patch

And run ./install again : Only tk4.8.18 and nam-1.xx will change,
and you should now get a 'nam' that works. _ _ _ _
Attached Files
File Type: txt tk-8.4-lastevent.patch.txt (844 Bytes, 580 views)

Last edited by knudfl; 07-21-2010 at 12:16 PM.
 
1 members found this post helpful.
Old 07-21-2010, 09:17 PM   #5
vahitha
LQ Newbie
 
Registered: Jul 2010
Posts: 5

Original Poster
Rep: Reputation: 0
ns2.33 installation and path setting in fedora12

sir,
thankyou sir
i patch the tk-8.4-lastevent.patch file from /ns-allinone/tk8.4.18/
nam is also worked well.

now i executed one tcl program.i can view the result in nam sucessfully.
then,when i execute it with ns program_name.tcl from command prompt the part of my program is executed and i can see the calculated through put and delay etc...in terminal window.

i couldn't get it in graph.
error :ns: proc_name: couldn't execute "xgraph": no such file or directory

what are the steps should be followed and what are the possibilities to get these?

i check well in path setting for xgraph also.
please help me to execute my program successfully.

thankyou.
vahitha
 
Old 07-22-2010, 01:26 AM   #6
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
'xgraph' is not considered important, and was never created.
It's a old tool, 2001 and will usually not build on a new Linux.

But you can use a binary from a Debian package :
http://packages.debian.org/stable/math/xgraph
http://ftp.de.debian.org/debian/pool....1-10_i386.deb
> xgraph_12.1-10_i386.deb
Unpack with : 1) ar -x xgraph_12.1-10_i386.deb
2) tar xvf data.tar.gz , and copy 'xgraph' to /usr/local/bin/

Can be tested with ns-allinone-2.34/xgraph-12.1/examples/...
..

Last edited by knudfl; 07-22-2010 at 11:19 AM.
 
Old 07-22-2010, 11:41 PM   #7
vahitha
LQ Newbie
 
Registered: Jul 2010
Posts: 5

Original Poster
Rep: Reputation: 0
sir,
thankyou.
i followed your suggestions to install xgraph.
it is installed sucessfully.
when i execute builtin xgraph from /xgraph-12.1/example/
it is executed sucessfully.
but when i execute my program,i received "problem in input" message.
in which part i should concentrate?

part of my program
# Plot Recorded Statistics

exec xgraph n5-pkt_rec.tr n12-pkt_rec.tr n11-pkt_rec.tr n14-pkt_rec.tr n0-pkt_rec.tr -geometry 800x400 -t "NO OF PACKET RECIVED AT SINK" -x "Time" -y "Receive packets" &

exec xgraph n5-pdr.tr n12-pdr.tr n11-pdr.tr n14-pdr.tr n0-pdr.tr -geometry 800x400 -t "Throughput-Perfomance-Evaluation" -x "Time" -y "Receive packets" &

exec xgraph n5-Bw.tr n12-Bw.tr n11-Bw.tr n14-Bw.tr n0-Bw.tr -geometry 800x400 -t "Bandwith" -x "Time" -y "Received bytes" &

exec xgraph n5-delay.tr n12-delay.tr n11-delay.tr n14-delay.tr n0-delay.tr -geometry 800x400 -t "End-to-End-Delay" -x "Time" -y "Received bytes" &



please help me.
vahitha
 
Old 07-23-2010, 03:34 AM   #8
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
Not a subject I know much about, but is xgraph supposed to use
.tr files directly ?
Or should "out.tr" be filtered into a new file = "out.xgr" ?

Google .. ns2 display out.tr .. ( 1,000,000 hits ) Examples :
http://nile.wpi.edu/NS/example_srm.html

http://spectral.mscs.mu.edu/Net2008I...TML/node2.html
QUOTE : "awk filters the trace file out.tr using filter fil2.awk and
directs the output to out2.xgr (to be displayed with xgraph later on).
Same with fil4.awk and fil6.awk."
..
 
Old 08-25-2010, 02:39 AM   #9
vahitha
LQ Newbie
 
Registered: Jul 2010
Posts: 5

Original Poster
Rep: Reputation: 0
sir,
thankyou sir.
i need to know how to uninstall ns2.33 from fedora 12. i cannot delete ns-allinone-2.33 folder from root directory.
if i delete the message displays as "permission denied"
please tell me how to delete ns2 permanantly.
thankyou,
vahitha
 
Old 08-25-2010, 06:55 PM   #10
DukeSSD
Member
 
Registered: Sep 2007
Posts: 90

Rep: Reputation: 20
Hang on a minute...
Why is this thread on the AIX forum?

Shouldn't it be over here:
http://www.linuxquestions.org/questions/fedora-35/
 
Old 03-12-2011, 12:52 AM   #11
dev_crazy56
LQ Newbie
 
Registered: Mar 2011
Location: Bhubaneswar, Orissa India
Posts: 3

Rep: Reputation: 0
hello Sir knudfl,

Your solution was fantastic and my nam worked perfectly well with your patch file. But after a few runs it failed to work again. It gave some weird message like.....


________________________________________________
nam:
[code omitted because of length]
: no event type or button # or keysym
while executing
"bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D / 120) * 4}] units
}"
invoked from within
"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} {
bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D)}] units
}
bind Li..."
___________________________________________________


And when i tried.....


/ns-allinone-2.33/tk8.4.18$ patch -p0 < tk-8.4-lastevent.patch.txt


it gave a message like......
_________________________________________________________________

patching file generic/tk.h
Reversed (or previously applied) patch detected! Assume -R? [n] n
Apply anyway? [n] y
Hunk #1 FAILED at 635.
1 out of 1 hunk FAILED -- saving rejects to file generic/tk.h.rej
__________________________________________________________________


Sir i am using Ubuntu 9.10 and in the middle of my college project. I will be always grateful to you if you could help me.


thank you
dev

Last edited by dev_crazy56; 03-12-2011 at 12:54 AM. Reason: to indicate the person in concern
 
Old 03-12-2011, 02:11 AM   #12
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
Post # 11, @dev_crazy56 : Welcome to LQ. .. .. ..

Nam is a separate application : Any 'nam' can be used.
E.g. https://docs.google.com/uc?id=0B7S25...=CLPiyxo&hl=en
> > nam-1.14.i586.tar.gz

Untar the package to /usr/local/bin/ : And it is in a system path.
Or 'tar xvf nam-1.14.i586.tar.gz' anywhere and : sudo cp nam /usr/local/bin/
> > Tested on Ubuntu 9.10 → → Works perfect.

More info here, post # 8
http://www.linuxquestions.org/questi...9/#post4287321

..
 
Old 03-12-2011, 03:30 AM   #13
dev_crazy56
LQ Newbie
 
Registered: Mar 2011
Location: Bhubaneswar, Orissa India
Posts: 3

Rep: Reputation: 0
thank you so much sir for your interest.


I did as per your instruction and then......

______________________________________________________________________

debasish@debasish-laptop:~/Downloads/nam$ tar xvf nam-1.14.i586.tar.gz
nam-1.14.i586/
nam-1.14.i586/nam
debasish@debasish-laptop:~/Downloads/nam$ sudo cp nam /usr/local/bin/
[sudo] password for debasish:
cp: cannot stat `nam': No such file or directory
debasish@debasish-laptop:~/Downloads/nam$ sudo cp nam/usr/local/bin/
cp: missing destination file operand after `nam/usr/local/bin/'
Try `cp --help' for more information.
_______________________________________________________________________


and now whenever i try to run nam in my terminal it shows the same result.

_______________________________________________________________________

debasish@debasish-laptop:/usr/local/bin$ nam
nam:
[code omitted because of length]
: no event type or button # or keysym
while executing
"bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D / 120) * 4}] units
}"
invoked from within
"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} {
bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D)}] units
}
bind Li..."

____________________________________________________________________________

But when i graphically go to usr/local/bin/ and double click on the 'nam' executable icon, it runs which is a little bit unsatisfactory.

sir i m purely a newbie, apologies for the trouble i m causing.....

sincerely dev
 
Old 03-12-2011, 04:08 AM   #14
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
# 13

tar xvf nam-1.14.i586.tar.gz && cd nam-1.14.i586/ && sudo cp nam /usr/local/bin/


..

Last edited by knudfl; 03-12-2011 at 04:10 AM.
 
1 members found this post helpful.
Old 03-12-2011, 04:24 AM   #15
dev_crazy56
LQ Newbie
 
Registered: Mar 2011
Location: Bhubaneswar, Orissa India
Posts: 3

Rep: Reputation: 0
Thumbs up

that worked perfectly sir,

thank you very much for you time,

dev
 
  


Reply

Tags
ns2, tk-8.4-lastevent.patch, trace, trace+awk



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
ns2.33 installation in fedora & path setting murali1509 Linux - Newbie 0 01-06-2009 07:53 AM
path in ns2 raoatta Linux - Networking 3 10-01-2008 02:17 AM
Setting environment variables for NS2 installation over enterprize linux inamullah Linux - Enterprise 0 07-18-2008 01:01 AM
Setting PATH shridevi Linux - Newbie 4 12-11-2007 11:19 AM
how to set path? here a meet the problem with ns2 installation cain_eve Linux - Newbie 12 12-16-2004 05:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 01:03 AM.

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