Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-01-2013, 10:08 PM   #1
LQ Newbie
Registered: Mar 2013
Posts: 3

Rep: Reputation: Disabled
Unhappy NS2 : nam failed to load

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

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

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
Am using Ubuntu 11.10

Could you please help me ..
Old 03-02-2013, 03:40 AM   #2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebJessie, + 50+ other Linux OS, for test only.
Posts: 15,636

Rep: Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991
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
amd64 / x86_64

Old 03-02-2013, 05:04 AM   #3
LQ Newbie
Registered: Mar 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi Knudfl,

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

Thanks again for your prompt assistance.


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
ns2.32: nam file does not execute nadia_kh Linux - Newbie 3 07-19-2012 11:40 AM
nam not working ns2.33 fabe856 Linux - Software 3 04-20-2012 01:03 PM
[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

All times are GMT -5. The time now is 08:01 AM.

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