LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 11-16-2009, 09:28 AM   #1
kuberninad
LQ Newbie
 
Registered: Oct 2009
Posts: 10

Rep: Reputation: 0
nam error in ns-2.29 due to mannsim


I HAVE PATCHED MANNASIM TO NS-2.29.BUT,I AM GETTING ERRORS
IN EXECUTING NAM FILES.TCL FILE IS RUNNING SUCCESSFULLY.
PLEASE PROVIDE ME A SOLUTION.

------------------------------------------------------------
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 {[string equal [tk windowingsystem] "classic"]
|| [string equal [tk windowingsystem] "aqua"]} {
bind Listbox <MouseWheel> {
%W yview scroll [expr {..."
 
Old 11-16-2009, 10:33 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by kuberninad View Post
I HAVE PATCHED MANNASIM TO NS-2.29.BUT,I AM GETTING ERRORS
IN EXECUTING NAM FILES.TCL FILE IS RUNNING SUCCESSFULLY.
PLEASE PROVIDE ME A SOLUTION.

------------------------------------------------------------
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 {[string equal [tk windowingsystem] "classic"]
|| [string equal [tk windowingsystem] "aqua"]} {
bind Listbox <MouseWheel> {
%W yview scroll [expr {..."
First, turn your caps lock key off, and write clearly. Caps lock is considered shouting, and is very rude.

Second, you need to provide some details, like version/distro of Linux, and clarify things. You provide a very small amount of code, with no context around it, or say what you're trying to do.

Read the docs here: http://www.mannasim.dcc.ufmg.br/howto.htm Perhaps they can be of help
 
Old 11-16-2009, 12:56 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
nam:
[code omitted because of length]
Nam is a separate application, and is not connected to 'ns'
Nam is just executing the output result from ns ( nam.out ).

The error is a typical one, caused by compiling nam with a
wrong version of tcl / tk . AFAIK....
Version , tcl--tk , please.
Nam version ?
EDIT : Nam issues
http://www.linuxquestions.org/questi...ns2-791067/#10


As said by @ TB0ne , please tell, which Linux, you are using.
Like CentOS 5 , Fedora 11 , Ubuntu 9.10 .

P.S. : The patch is 6,855 lines ( = 982 kB unpacked.)
.....

Last edited by knudfl; 03-20-2010 at 08:42 AM.
 
Old 11-17-2009, 09:36 AM   #4
kuberninad
LQ Newbie
 
Registered: Oct 2009
Posts: 10

Original Poster
Rep: Reputation: 0
i have used ns-allinone-2.29 in ubuntu9.04.
patch used: mannasim-patch.diff size: 983 kb
 
Old 11-17-2009, 05:49 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
OK , I remember, that you have build ns-allinone-2.34
on Ubuntu 9.04.
.....

I can't build ns-allinone-2.29.3 ( mannasim-patch ) on 9.04. EDIT →
EDIT : Ubuntu : http://www.linuxquestions.org/questi...65#post4007465
Example, Scientific Linux SL53 ( = CentOS 5.3 ),
No problems, ns-allinone-2.29.3, no errors.
.....

About your ' nam ' problem : As nam still has nothing
to do with the other applications, you can use any nam.
EDIT: use the tk-8.4-lastevent.patch
http://www.linuxquestions.org/questi...65#post4007465

Suggest : use the one from ns-allinone-2.34 .
It can be installed, if you want :
cd ns-allinone-2.34/nam-1.14
sudo make install
.. which will copy one file to /usr/local/bin > >
> /usr/local/bin/nam
.....

Last edited by knudfl; 06-18-2010 at 08:28 AM.
 
Old 02-11-2010, 02:27 AM   #6
kuberninad
LQ Newbie
 
Registered: Oct 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
OK , I remember, that you have build ns-allinone-2.34
on Ubuntu 9.04.
.....

I can't build ns-allinone-2.29.3 ( mannasim-patch )
on 9.04. Example, Scientific Linux SL53 ( = CentOS 5.3 ),
No problems, ns-allinone-2.29.3, no errors.
So how did you do it on 9.04 ? Which compiler ?
.....

About your ' nam ' problem : As nam still has nothing
to do with the other applications, you can use any nam.

Suggest : use the one from ns-allinone-2.34 .
It can be installed, if you want :
cd ns-allinone-2.34/nam-1.14
sudo make install
.. which will copy one file to /usr/local/bin > >
> /usr/local/bin/nam
.....
my friend has similar error with ns-allinone-2.29 and he tried above sol (by knudfl).but he is getting following problem:
------------------------------------------------------------------------
/usr/bin/install -c -m 755 nam /usr/local/bin
/usr/bin/install: cannot stat `nam': No such file or directory
make: *** [install] Error 1
------------------------------------------------------------------------
please suggest sol.
 
Old 02-11-2010, 09:36 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by kuberninad View Post
my friend has similar error with ns-allinone-2.29 and he tried above sol (by knudfl).but he is getting following problem:
------------------------------------------------------------------------
/usr/bin/install -c -m 755 nam /usr/local/bin
/usr/bin/install: cannot stat `nam': No such file or directory
make: *** [install] Error 1
------------------------------------------------------------------------
please suggest sol.
Your 'friend' doesn't have nam installed, or it's in a different location, as the error clearly states. Locate the file, and perform the chmod operation on it, or move it to /usr/local/bin. Or perform the nam installation correctly.
 
Old 02-12-2010, 07:02 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
1) cd <path-to-folder-with>/ns-allinone-2.34/nam-1.14/
2) pwd
... to find out, if you really did 'cd' to nam-1.14/

3) su
4) make install
.. which will install 'nam' to /usr/local/bin/
.. but only if the executable nam exist, else not.

If it wasn't created (nam), please recompile.
.....

As 'nam' is the only file to deal with, you can also just
do : sudo cp nam /usr/local/bin/ , as said by @ TB0ne.
.....

Last edited by knudfl; 02-12-2010 at 07:05 AM.
 
  


Reply

Tags
error, mannasim, nam, ns2, ns229



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
login error can's start session due to internal error wiisikke Fedora 3 05-11-2010 01:29 AM
nam:couldn't connect to display ":0.0 swift_a2002 Linux - Software 2 08-28-2009 01:26 AM
nam network animator farazhasan110 Linux - Software 1 11-28-2008 12:49 PM
gslapt error, firefox error due to libpangoxft? mandraker64 Linux - Software 1 12-04-2006 03:22 AM
Error USB-HUC on booting due in mdk10 due to mx700 Boudewijn Mandriva 4 10-09-2004 08:36 AM

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

All times are GMT -5. The time now is 02:49 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