Linux - SoftwareThis 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.
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.
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.
Hi all.
I'm just installed ns 2.31 in my cumputer:fedora 12 (this is the first time working with ns2 and fedora) but I don't know commands to run an example of tcl script and show the graph in my screen. plz help me.
The command to run an example : ns2 example-Xx.tcl
Some example files will open nam at once and show the simulation.
Other examples will create a file : nam.out , which can be run
with : nam nam.out
After the ns2, nam build : Test both in all different
ways, you can think of. They are supposed to be statically
build, i.e. only using the ns2 "tcl, tk version 8.4.14".
So reinstalling the system tcl ( tk ) version 8.5.7
after the tests should usually do no harm.
.....
to run tcl scripts, you can use the command ns...for example if you do have example.tcl you can run it as:
#ns example.tcl
to run nam scripts, you can also run them as:
#nam example.nam
but incase your nam is connected to your tcl script it is better to call it from within your tcl script such as:
exec nam example.nam & so as not to run two scripts. here you will only need to run the tcl scripts and if it does run properly the nam with its GUI will appear at the end so as you test out your example.
regards
NB: i too am a newbie but thanks to the forums you learn alot
In case you are installing just package by package, i would advice for you to download ns-allinone 2.33 or depending on the version you want it comes with all the packages you need of ns, nam, tcl, tk this also helps you avoid such errors.
Hi all.
I have reinstalled ns2 and it shows me % when I tape ns in the shell.
But I have got the same the problem with the graphic mode. I have tried many times to show an example of simulation but nothing appear.
when I tape nam I always got this msg:
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..."
Plz help because I need to show an example of simulation to begin working.
Is it necessary to patch ns2?
Thanks and regards.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Yes, that is odd, nam-1.13 ( or 1.14 ) will not create
a working executable on Fedora 12.
No problems with nam on any other modern Linux.
EDIT : See post # 10.
I just made a test compile of nam-1.14 , no ./install
of the complete ns-allinone-2.34 . ( Is known to work
perfect on Fedora 11.)
Nam is a separate application, any version will do.
Click my name, send an email, and I will attach a
static 'nam' (version 1.14), that works on Fedora 12,
to a return mail. ( filesize = 948 kB ).
Suggest : 1) copy the new nam to /usr/local/bin/
Then it is in your path, and the command nam works.
2) And delete the corrupt nam-1.13/nam
.....
P.S. : I guess, the best ns2 version for Fedora 12 is ns-allinone-2.34 .
Fedora 11 : proplems with version 2.33 . But 2.34 works perfect.
.....
hi Freinds
i install ns-2.34 & leach Protocol in ns2.
i want see out graph leach but i'v this message after enter instruction ns leach.tcl:
couldn't read file "mit/uAMPS/ns-leach.tcl": no such file or directory
while executing
"source.orig mit/uAMPS/ns-leach.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source mit/uAMPS/ns-leach.tcl"
(file "leach.tcl" line 7)
plz help;
hi! for run ns2 tcl file >>> go to tcl path and ns tclfilename.tcl
for run Xgraph >>> write run command in TCL file
if dont run Xgraph plz send me email(hmd_jfr@yahoo.com)
"Parameter LabelFont: can't translate `helvetica-10' into a font (defaulting to `fixed')
X Error: BadFont (invalid Font parameter)
Major opcode of failed request: 55 (X_CreateGC)
Aborted (core dumped)"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.