-
7th December 2008, 11:16 AM
#1
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
-
13th December 2008, 05:03 AM
#2
I have the same problem. yet no workaround.
will check in ubunu
-
14th December 2008, 08:09 AM
#3
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.
-
8th January 2009, 06:29 PM
#4
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.
-
9th January 2009, 02:19 PM
#5
-
10th January 2009, 10:58 AM
#6
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.
-
25th January 2009, 06:43 PM
#7
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??
-
28th April 2009, 02:54 PM
#8
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.
-
4th May 2009, 08:25 PM
#9
Oh my God.. so this NAM (version 1.13) indeed needs a patch!
Anyway, thanks for the help and I will try it!
-
4th May 2009, 09:11 PM
#10

Originally Posted by
enjoybullife
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.
-
4th May 2009, 09:21 PM
#11

Originally Posted by
kyochan19792002
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.
-
6th May 2009, 03:00 PM
#12
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!
-
6th May 2009, 06:25 PM
#13
Now it works...
It was a wrong reconfigure by me, what a stupid I'm! :-)
-
13th May 2009, 08:14 AM
#14
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.).
-
13th May 2009, 08:22 AM
#15
Be sure to do again configure and make of all ( tk, otcl, tclcl, ns2 ) after change.
Similar Threads
-
By dcelta@gmail.co in forum Using Fedora
Replies: 1
Last Post: 20th July 2009, 06:07 PM
-
By rando1000 in forum Installation, Upgrades and Live Media
Replies: 1
Last Post: 19th April 2009, 08:27 PM
-
By asset47 in forum Servers & Networking
Replies: 2
Last Post: 6th April 2008, 03:27 AM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
[[template footer(Guest)]]