Linux - NewbieThis 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.
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.
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)
Last edited by yogeshdhingra; 05-05-2015 at 01:37 PM.
Reason: please reply quickly
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)
Based on your edit-reason of "Reason: please reply quickly", you should first read the "Question Guidelines" and "How to ask a smart question" links in my posting signature. You provide ZERO details, and ask a vague question.
Short answer? The file isn't in that location, or has bad permissions. So put the right path in, and make sure it's readable.
Longer answer? Be polite: this is a volunteer forum, so telling us to hurry up and answer you is rude. When asking a question, provide DETAILS. Editing your question after SIX MINUTES to tell us to hurry up won't get you answers any faster.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Re #4 :
1) $ cd ns-2.34/ : That's the only location with 'test' and 'leach_test'.
2) $ export RCA_LIBRARY=/home/<name>/ns-allinone-2.34/ns-2.34/mit/rca && export .. .. ..
Re #5 : What to do Next ....
"Next A" : Read the latest ~200 post in the links from post #3,
so you don't have to ask questions already asked before.
Next B : You can also read the indicator for a successful build : leach.err >>
>>> OK, if two lines : Line 1. mac/chanel.cc: INITIALIZE THE LIST xListHead
Line 2. SORTING LISTS ...DONE!
Next C : Read the simulation settings / scripts (again) : { test, leach_test }.
Next D : Run the results with Xgraph, like $ xgraph leach.alive.txt
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.