running NS2 on Fedora 10
FedoraForum.org - Fedora Support Forums and Community
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 28
  1. #1
    Dogged Guest

    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

  2. #2
    Join Date
    Dec 2008
    Location
    Pakistan
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have the same problem. yet no workaround.
    will check in ubunu

  3. #3
    Join Date
    Dec 2008
    Location
    Pakistan
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  4. #4
    vicentelias Guest
    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.

  5. #5
    Dogged Guest
    thanks Badar Abbas

  6. #6
    Join Date
    Dec 2008
    Location
    Pakistan
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  7. #7
    Join Date
    Jan 2009
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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??

  8. #8
    enjoybullife Guest
    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.

  9. #9
    kyochan19792002 Guest
    Oh my God.. so this NAM (version 1.13) indeed needs a patch! Anyway, thanks for the help and I will try it!

  10. #10
    kyochan19792002 Guest
    Quote 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.

  11. #11
    kyochan19792002 Guest
    Quote 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.

  12. #12
    Nowhere82 Guest
    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!

  13. #13
    Nowhere82 Guest
    Now it works...
    It was a wrong reconfigure by me, what a stupid I'm! :-)

  14. #14
    Join Date
    May 2009
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

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

  15. #15
    Nowhere82 Guest
    Be sure to do again configure and make of all ( tk, otcl, tclcl, ns2 ) after change.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Problems when running emacs 22.3 under an X86_64 running FC10
    By dcelta@gmail.co in forum Using Fedora
    Replies: 1
    Last Post: 20th July 2009, 06:07 PM
  2. Fedora 9 (Sulpher) still running after preupgrade to Fedora 10
    By rando1000 in forum Installation, Upgrades and Live Media
    Replies: 1
    Last Post: 19th April 2009, 08:27 PM
  3. 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
  •