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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-16-2009, 09:28 AM
|
#1
|
LQ Newbie
Registered: Oct 2009
Posts: 10
Rep:
|
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 {..."
|
|
|
11-16-2009, 10:33 AM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,672
|
Quote:
Originally Posted by kuberninad
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
|
|
|
11-16-2009, 12:56 PM
|
#3
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
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.
|
|
|
11-17-2009, 09:36 AM
|
#4
|
LQ Newbie
Registered: Oct 2009
Posts: 10
Original Poster
Rep:
|
i have used ns-allinone-2.29 in ubuntu9.04.
patch used: mannasim-patch.diff size: 983 kb
|
|
|
11-17-2009, 05:49 PM
|
#5
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
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.
|
|
|
02-11-2010, 02:27 AM
|
#6
|
LQ Newbie
Registered: Oct 2009
Posts: 10
Original Poster
Rep:
|
Quote:
Originally Posted by knudfl
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.
|
|
|
02-11-2010, 09:36 AM
|
#7
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,672
|
Quote:
Originally Posted by kuberninad
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.
|
|
|
02-12-2010, 07:02 AM
|
#8
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
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.
|
|
|
All times are GMT -5. The time now is 04:12 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|