Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Other Versions > EOL (End Of Life) Versions
FedoraForum Search

Forgot Password? Join Us!

EOL (End Of Life) Versions This is a Forum to discuss problems and workarounds for versions of Fedora that have passed End of Life.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 7th December 2008, 10:16 AM
Dogged Offline
Registered User
 
Join Date: Dec 2008
Posts: 2
Exclamation running NS2 on Fedora 10

Hi,everyone.
I got a problem about running NS2 on Fedora 10.
when I enter the "ns simple.tcl" command ,the shell show this error below:
210
0.0037499999999999999
running nam...
[root@DELL ex]# 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..."


Can anyone come across with the same problem?
If anyone know,could you help me.thank you
Reply With Quote
  #2  
Old 13th December 2008, 04:03 AM
Badar Abbas Offline
Registered User
 
Join Date: Dec 2008
Location: Pakistan
Posts: 24
I have the same problem. yet no workaround.
will check in ubunu
Reply With Quote
  #3  
Old 14th December 2008, 07:09 AM
Badar Abbas Offline
Registered User
 
Join Date: Dec 2008
Location: Pakistan
Posts: 24
OK I have solved the problem. First go to the link below and download both the patches. I uesed only one and it workrd. Then extract the ns-allinone-2.33 archive and copy the patches in tk8.4.18 directory.

http://bugs.gentoo.org/show_bug.cgi?id=225999
The command session is below.

[badar@linux ~]$ cd ns-allinone-2.33/tk8.4.18/
[badar@linux tk8.4.18]$ ls
bitmaps compat library macosx tk-8.4.18-tkBind.patch win
ChangeLog doc license.terms README tk-8.4-lastevent.patch xlib
changes generic mac tests unix
[badar@linux tk8.4.18]$ patch -p1 < ./tk-8.4
tk-8.4.18-tkBind.patch tk-8.4-lastevent.patch
[badar@linux tk8.4.18]$ patch -p1 < ./tk-8.4-lastevent.patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- generic/tk.h.orig 2008-02-06 16:31:40.000000000 +0100
|+++ generic/tk.h 2008-07-24 08:21:46.000000000 +0200
--------------------------
File to patch: generic/tk.h
patching file generic/tk.h
[badar@linux tk8.4.18]$ cd ..
[badar@linux ns-allinone-2.33]$ ./install


I used patch for the first time and could not figure out exact option. So you have to manually enter generic/tk.h above. Anyone to give correct patch options.
Reply With Quote
  #4  
Old 8th January 2009, 05:29 PM
vicentelias Offline
Registered User
 
Join Date: Jan 2009
Posts: 1
Hello everyone,
This is my first post in this forum. I've recently intalled ns on windows using Cygwin.
Now I have the same error message when I try to execute nam.

Do you think this solution would work on Cygwin?

I've try but it didn't worked.

Regards from Chile.
Reply With Quote
  #5  
Old 9th January 2009, 01:19 PM
Dogged Offline
Registered User
 
Join Date: Dec 2008
Posts: 2
thanks Badar Abbas
Reply With Quote
  #6  
Old 10th January 2009, 09:58 AM
Badar Abbas Offline
Registered User
 
Join Date: Dec 2008
Location: Pakistan
Posts: 24
update on same problem
do not setup/change TCL library variables if you have following lines added to ~/.bashrc

# TCL_LIBRARY

TCL_LIB=/home/mm/ns-allinone-2.33/tcl8.4.18/library

USR_LIB=/usr/lib

export TCL_LIBRARY=$TCL_LIB:$USR_LIB


Just comment them out or delete them. it will use Fedora's Tcl package for running NAM , which is already patched.
I have not run it under cygwin, try to apply patch and then build. ideally it should work.
Reply With Quote
  #7  
Old 25th January 2009, 05:43 PM
mirzaw Offline
Registered User
 
Join Date: Jan 2009
Posts: 1
hello all i have the same problem ...... After successful installation of ns-allinone-2.33 on windows xp under cygwin......
Please help me in fixing this problem.. or should i install fedora 10 for ns-2??
Reply With Quote
  #8  
Old 28th April 2009, 02:54 PM
enjoybullife Offline
Registered User
 
Join Date: Apr 2009
Posts: 1
It may be a silly question. How to Download patch file from the gentoo website .there is no option for download. Can anyone help me please.
Reply With Quote
  #9  
Old 4th May 2009, 08:25 PM
kyochan19792002 Offline
Registered User
 
Join Date: Mar 2009
Location: Australia
Age: 33
Posts: 5
Oh my God.. so this NAM (version 1.13) indeed needs a patch! Anyway, thanks for the help and I will try it!
Reply With Quote
  #10  
Old 4th May 2009, 09:11 PM
kyochan19792002 Offline
Registered User
 
Join Date: Mar 2009
Location: Australia
Age: 33
Posts: 5
Quote:
Originally Posted by enjoybullife View Post
It may be a silly question. How to Download patch file from the gentoo website .there is no option for download. Can anyone help me please.
Well, you can only see the text file from that website.

In fact, you need to change that particular file in your Linux manually

Here is what you should do.

--- tk8.4.18-orig/generic/tkBind.c 2006-07-21 08:26:54.000000000 +0200
+++ tk8.4.18/generic/tkBind.c 2008-07-05 12:17:10.000000000 +0200
@@ -586,6 +586,9 @@
/* ColormapNotify */ COLORMAP,
/* ClientMessage */ 0,
/* MappingNotify */ 0,
+#ifdef GenericEvent
+ /* GenericEvent */ 0,
+#endif
/* VirtualEvent */ VIRTUAL,
/* Activate */ ACTIVATE,
/* Deactivate */ ACTIVATE,

This @@ -586,6 +586,9 @@ indicates exact location of the line that you start to edit, if you are using gedit or other similar editor in Linux.

The + sign indicates what to add, and the - sign indicates what to delete.
Reply With Quote
  #11  
Old 4th May 2009, 09:21 PM
kyochan19792002 Offline
Registered User
 
Join Date: Mar 2009
Location: Australia
Age: 33
Posts: 5
Quote:
Originally Posted by kyochan19792002 View Post
Oh my God.. so this NAM (version 1.13) indeed needs a patch! Anyway, thanks for the help and I will try it!
Woo, it is working! Anyway, anyone, who is using this version of NAM or similar, can follow what Badar Abbas has suggested.
Reply With Quote
  #12  
Old 6th May 2009, 03:00 PM
Nowhere82 Offline
Registered User
 
Join Date: May 2009
Posts: 5
Hi all...
I would ask your help to solve the same problem as topic's one, but I haven't success with shown solution.
I'm using tck8.4.19 for ns2 under cygwin... but when simple.tcl should start nam I get the error:

[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 modified my tkBind in tk8.4.19/generic as suggested and here is my changed piece:

/* ColormapNotify */ COLORMAP,
/* ClientMessage */ 0,
/* MappingNotify */ 0,
#ifdef GenericEvent
/* GenericEvent */ 0,
#endif
/* VirtualEvent */ VIRTUAL,
/* Activate */ ACTIVATE,
/* Deactivate */ ACTIVATE,
/* MouseWheel */ KEY


I run ./configure and make again as follows

Rose@NB-ROSE /usr/local/tk8.4.19/unix
$ ./configure --disable-load --with-tcl=../../tcl8.4.19/unix
Rose@NB-ROSE /usr/local/tk8.4.19/unix
$ make

but my error isn't getting solved

where am I in error?
I'm newbie to cygwin, ns and tk so any suggestion would be appreciated :-)
Thanks in advance!
Reply With Quote
  #13  
Old 6th May 2009, 06:25 PM
Nowhere82 Offline
Registered User
 
Join Date: May 2009
Posts: 5
Now it works...
It was a wrong reconfigure by me, what a stupid I'm! :-)
Reply With Quote
  #14  
Old 13th May 2009, 08:14 AM
ratnesh1729 Offline
Registered User
 
Join Date: May 2009
Posts: 2
did changes in generic tkBind.c as above,but

i did changes as mentioned above , but i dnt knw what to do after that.. (
m a newbie, using ubuntu and i installed NS-2 2.33 today and while running .tcl examples i got same error as mentioned in first post.).
Reply With Quote
  #15  
Old 13th May 2009, 08:22 AM
Nowhere82 Offline
Registered User
 
Join Date: May 2009
Posts: 5
Be sure to do again configure and make of all ( tk, otcl, tclcl, ns2 ) after change.
Reply With Quote
Reply

Tags
fedora, ns2, running

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems when running emacs 22.3 under an X86_64 running FC10 dcelta@gmail.co Using Fedora 1 20th July 2009 06:07 PM
Fedora 9 (Sulpher) still running after preupgrade to Fedora 10 rando1000 Installation and Live Media 1 19th April 2009 08:27 PM
network bridge from Dell running Fedora 8 to laptop running Vista asset47 Servers & Networking 2 6th April 2008 03:27 AM


Current GMT-time: 20:19 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat