LinuxQuestions.org
Visit Jeremy's Blog.
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 05-05-2015, 02:29 PM   #1
yogeshdhingra
LQ Newbie
 
Registered: Apr 2015
Posts: 4

Rep: Reputation: Disabled
i get an error while executing 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)

Last edited by yogeshdhingra; 05-05-2015 at 02:37 PM. Reason: please reply quickly
 
Old 05-05-2015, 02:48 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,328

Rep: Reputation: 4471Reputation: 4471Reputation: 4471Reputation: 4471Reputation: 4471Reputation: 4471Reputation: 4471Reputation: 4471Reputation: 4471Reputation: 4471Reputation: 4471
Quote:
Originally Posted by yogeshdhingra View Post
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.
 
Old 05-05-2015, 03:22 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,758

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
@yogeshdhingra, Welcome to LQ.

`leach.tcl' is not a simulation file. Please read the file.

The simulation that is using the tcl files in mit/** is like ..
Code:
export RCA_LIBRARY=/home/<name>/ns-allinone-2.34/ns-2.34/mit/rca && export uAMPS_LIBRARY=/home/<name>/ns-allinone-2.34/ns-2.34/mit/uAMPS && ./test
Please read `leach_test' : All the leach settings.

Leach INFO :
. http://www.linuxquestions.org/questions/tags/leach/
. http://www.linuxquestions.org/questions/tags/pegasis/

-
 
2 members found this post helpful.
Old 05-06-2015, 02:18 AM   #4
yogeshdhingra
LQ Newbie
 
Registered: Apr 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
reply to thread #3

plz you tell me where i will write these packages
 
Old 05-06-2015, 02:30 AM   #5
yogeshdhingra
LQ Newbie
 
Registered: Apr 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
reply to post #3

running these commands in the terminal.what needs to be done after that
 
Old 05-06-2015, 05:40 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,758

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
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


-

Last edited by knudfl; 05-06-2015 at 05:44 AM.
 
Old 05-13-2015, 01:12 PM   #7
yogeshdhingra
LQ Newbie
 
Registered: Apr 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
how to increase clusterhead in tcl file
 
  


Reply

Tags
leach, ns2


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
[SOLVED] error while executing a tcl file in ns2 Zahraa Ayad Linux - General 3 12-24-2014 11:20 AM
error while executing leach in ns2.34 pon Linux - Newbie 5 08-27-2014 01:25 PM
Error while executing tcl... Ganesh3691 Linux - Wireless Networking 1 04-20-2014 01:39 PM
error while executing blackholeAODV tcl k_kimo Linux - Wireless Networking 5 06-27-2013 04:07 AM

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

All times are GMT -5. The time now is 11:43 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration