LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-19-2012, 05:16 AM   #1
nadia_kh
Member
 
Registered: May 2012
Posts: 30

Rep: Reputation: Disabled
Question 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
 
Old 07-19-2012, 06:27 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
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.)

.
 
Old 07-19-2012, 07:47 AM   #3
nadia_kh
Member
 
Registered: May 2012
Posts: 30

Original Poster
Rep: Reputation: Disabled
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
 
Old 07-19-2012, 11:40 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
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.

.

Last edited by knudfl; 07-19-2012 at 11:44 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nam not working ns2.33 fabe856 Linux - Software 3 04-20-2012 01:03 PM
Finding for Nam graph in NS2 Madhu S H Linux - Software 1 01-17-2012 04:16 AM
[SOLVED] ns2 nam not working in fedora 14 mujtiba Linux - Newbie 7 05-24-2011 07:30 AM
[SOLVED] NS2 Nam Issue atb2010 Linux - Newbie 2 03-17-2011 09:52 AM
problem with opening nam in ns2 MLinux Linux - General 1 11-16-2010 04:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration