LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   NS2 : nam failed to load (https://www.linuxquestions.org/questions/linux-software-2/ns2-nam-failed-to-load-4175452337/)

sakafi 03-01-2013 10:08 PM

NS2 : nam failed to load
 
Quote:

root@ubuntu:/var/ns2/ns-2.34# ./ns ../ns-simple.tcl
CBR packet size = 1000
CBR interval = 0.0080000000000000002
root@ubuntu:/var/ns2/ns-2.34# 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..."

root@ubuntu:/var/ns2/ns-2.34#
Am receiving this error while using ns2.34
I have compiled using tk 8.4.18 .

I have tried to install the patch as suggested in other threads but that failed

Quote:

root@ubuntu:/var/ns2/tk8.4.18# patch -p0 < ./tk-8.4-lastevent.patch.1
patching file generic/tk.h
Reversed (or previously applied) patch detected! Assume -R? [n] R
Apply anyway? [n] y
Hunk #1 FAILED at 635.
1 out of 1 hunk FAILED -- saving rejects to file generic/tk.h.rej
root@ubuntu:/var/ns2/tk8.4.18#
Am using Ubuntu 11.10

Could you please help me ..

knudfl 03-02-2013 03:40 AM

Ubuntu : Use a binary 'nam'.

And don't ever run any ns2 commands as root.
And : /var/ is not supposed to be used for any apps. Is mainly for log files.
Delete everything and start from scratch in /home/safaki/ns2/
( Or other folder in /home/safaki/ ).
And don't use any commands with su or sudo.

Nam i386/i686 https://docs.google.com/file/d/0B7S2...it?usp=sharing
amd64 / x86_64 https://docs.google.com/file/d/0B7S2...it?usp=sharing

-

sakafi 03-02-2013 05:04 AM

Hi Knudfl,

Thanks for the suggestion. I will try the binary and will update you.

Thanks again for your prompt assistance.


All times are GMT -5. The time now is 09:22 PM.