LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ns2.32: nam file does not execute (https://www.linuxquestions.org/questions/linux-newbie-8/ns2-32-nam-file-does-not-execute-4175417556/)

nadia_kh 07-19-2012 05:16 AM

ns2.32: nam file does not execute
 
hello
i use the ns-2.32. the ns run is successful. but the nam file is not shown

the appearing message is
Quote:

[nadia@NADIA work]$ ns test1.tcl
CBR packet size = 1000
CBR interval = 0.0080000000000000002
[nadia@NADIA work]$ 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..."
when i write the nam out.nam, the below message is shown
Quote:

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..."
what's the meaning of this?
please help me to solve it

thanks

knudfl 07-19-2012 06:27 AM

Delete the corrupt 'nam', and the use a binary nam in /usr/local/bin/.

Post #4 here
http://www.linuxquestions.org/questi...0-04-a-842109/


That's easier than 1) Patching tk8*/, 2) recompiling tk8*/,
3) recompiling nam-*/ . ( See post #2 in the link.)

.

nadia_kh 07-19-2012 07:47 AM

hi knudfl
i can't paste the nam to usr/local/bin because of permission denied. (the owner is root)
i can't login as root i give authentication error!!!!!
but from terminal i can login as root.

the new message is
Quote:

[nadia@NADIA work]$ ns test1.tcl
CBR packet size = 1000
CBR interval = 0.0080000000000000002
ns: finish: couldn't execute "nam": permission denied
while executing
"exec nam out.nam & "
(procedure "finish" line 5)
invoked from within
"finish"
what would i do to solve this???

(once i changed the permission of usr/local/bin the system was damaged and not worked)

thanks

knudfl 07-19-2012 11:40 AM

When a file (nam) isn't executable you can do : chmod +x nam

! No need to change anything with the /usr/local/bin/ folder !

You should be able to fix /usr/local/bin/ with :
1) su <password> 2) chmod 0755 /usr/local/bin/

Quote:

I can't login as root I give authentication error
It is never required ( or recommended ) to log in as root.
"su" in a terminal will do.

.


All times are GMT -5. The time now is 12:11 AM.