modify the file of tk-8.4.*/generic/tbBind.c
pls add 

#ifdef GenericEvent
/* GenericEvent */      0,
#endif

below the line of 588

save the file

reinstall ns2

dreams2010 wrote:
> 
> Hello, my OS is F12 with Gnome desktop, after many alternatives i
> installed ns-allinone-2.34 so ns-2.34 run very well:
> [dre...@localhost ~]$ ns
> % exit
> 
> When i try nam, i got this error:
> [dre...@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 tried this solution (from fedora Forum): 2 patchs: tkBind and lastevent
> but they failed
> 
> [dre...@localhost ~]$ cd ns-allinone-2.34/tk8.4.18
> [dre...@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?
> 
> 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.
> 

-- 
View this message in context: 
http://old.nabble.com/Exclamation--Problem-with-nam-in-ns-2.34-tp29356452p29356457.html
Sent from the ns-users mailing list archive at Nabble.com.

Reply via email to