LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-06-2010, 06:03 AM   #1
dreams2010
LQ Newbie
 
Registered: Aug 2010
Posts: 3

Rep: Reputation: 0
Exclamation Problem with nam in ns-2.34


Hello, my OS is F12 with Gnome desktop, after many alternatives i installed ns-allinone-2.34 so ns-2.34 run very well:
[dreams@localhost ~]$ ns
% exit

When i try nam, i got this error:
[dreams@localhost ~]$ 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..."

I m not familiar with Linux so i don't understand what it means.
I want to tell you that i can run nam when i acces to the folder with this command ./nam and i can see the samples so i run simulation.
I visit some pages when they speak about gcc and their compatibilities with F12.

When i use Makefile i got access dined.

I m very stupid , i wait for your help to continue my work.
I m sorry because this msg isn't short i tried to clarify my problem.

Thank you for your answers.
 
Old 08-06-2010, 07:27 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,536

Rep: Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506
Welcome to LQ. .. .. ..

Yes, it's an old bug in tk8.4.xx.
The patch 'tk-8.4-lastevent.patch' will fix it.
http://www.linuxquestions.org/questi...ting-818634/#4
> Post # 4.


More information about ns2 :
All ns2 posts at LQ are tagged ns2 : LQ Search → 'Tag Name' = ns2
..
 
Old 08-06-2010, 08:37 AM   #3
dreams2010
LQ Newbie
 
Registered: Aug 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Think you for reply,
i tried this before, i find this solution in fedora Forum: 2 patchs: tkBind and lastevent but they failed

[dreams@localhost ~]$ cd ns-allinone-2.34/tk8.4.18
[dreams@localhost tk8.4.18]$ patch -p0 < tk-8.4-lastevent.patch
patching file generic/tk.h
Hunk #1 FAILED at 635.
1 out of 1 hunk FAILED -- saving rejects to file generic/tk.h.rej

what does it means?
 
Old 08-07-2010, 02:30 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,536

Rep: Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506
Quote:
I tried this before ......
... 2 patches: tkBind and lastevent but they failed
Please tell what you mean by failed ? No 'nam' ?
( I get an OK nam on Fedora 12, ns-allinone-2.34 ).


""Hunk #1 FAILED at 635"" : Doesn't matter, there is nothing
in tk.h line 635 : Could have looked a little different, when the
patch was made for an older version e.g. tk8.4.5.
(The patch is for all versions of tk8.4 i.e. 8.4.5 .. 8.4.19 ).

Generally about ""1 out of 1 hunk FAILED"" :
Is usually because the edits already have been done.


About "nam" : Any nam can be used. Is just one binary file,
size about 2.2 MB. I can mail a nam, working on Fedora 12.
..

Last edited by knudfl; 08-07-2010 at 05:48 AM.
 
Old 09-26-2010, 04:34 AM   #5
dreams2010
LQ Newbie
 
Registered: Aug 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Sorry because i m latecomer (i was sick)

I m very stupid i don't understand your last msg.
 
Old 09-26-2010, 06:49 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,536

Rep: Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506
A hunk means a piece of a text, a piece of a line.
And lines in tk8.4.18, that were edited, say 3 years ago,
are ignored by 'patch', and you get the message e.g.
1 out of 1 hunk FAILED. It's not an error here.

Got your message by email and will send a binary 'nam'.
Suggest : su -c && cp nam /usr/local/bin/
Then it's always in a system path.
(You can do the same with ns: cp, or make install in ns-allinone/ns-2.34/ )

Good luck.
 
  


Reply

Tags
ns2, ns234, tk-8.4-lastevent.patch


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
problem in running nam-1.11 of ns-allinone-2.29 rishabhk Linux - Newbie 5 03-17-2011 05:31 AM
problem in running NAM marioma Linux - Networking 4 06-01-2010 07:20 PM
NAM is not working Nemi Ubuntu 3 03-19-2010 07:58 AM
Problem on launching x11 graphical session of nam/ xgraph for NS-2 aboutjeab Linux - Newbie 5 04-21-2008 07:53 AM
I am getting problem in nam-1.11 while installing ns-allinone-2.29 on fedora core 5 deodutta Linux - General 0 02-03-2007 10:38 PM


All times are GMT -5. The time now is 07:29 AM.

Main Menu
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