LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
LinkBack Search this Thread
Old 02-22-2012, 11:39 PM   #1
kinjal_patel
LQ Newbie
 
Registered: Feb 2012
Posts: 9

Rep: Reputation: Disabled
leach in NS-2.27


I have installed NS-2.27 successfully. Then installed LEACH. When I execute ./test I got following error in leach.err

couldn't read file "mit/rca/resources/ns-resources-manager.tcl " : no such file or directory
 
Old 02-22-2012, 11:43 PM   #2
corp769
Guru
 
Registered: Apr 2005
Posts: 5,798

Rep: Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978
Look in the parent directory where you ran ./test from, and try to find the location that it is giving you. If the file is not really present, then you may need to either redownload that package, and/or get online and find the resources need.
 
Old 02-23-2012, 01:40 AM   #3
kinjal_patel
LQ Newbie
 
Registered: Feb 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
reply to this

Quote:
Originally Posted by corp769 View Post
Look in the parent directory where you ran ./test from, and try to find the location that it is giving you. If the file is not really present, then you may need to either redownload that package, and/or get online and find the resources need.
this file is already present in that folder than also it gives this error
 
Old 02-23-2012, 01:45 AM   #4
corp769
Guru
 
Registered: Apr 2005
Posts: 5,798

Rep: Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978
Could you verify that you have the permissions to read that file?
 
Old 02-23-2012, 01:52 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,193

Rep: Reputation: 2372Reputation: 2372Reputation: 2372Reputation: 2372Reputation: 2372Reputation: 2372Reputation: 2372Reputation: 2372Reputation: 2372Reputation: 2372Reputation: 2372
Welcome to LQ.

The file "test" has a typo, please see post #6 here
( The ns-2.27 LEACH thread )
http://www.linuxquestions.org/questi...27-a-785379/#6


Other useful info ( ns-2.34 LEACH )
http://www.linuxquestions.org/questi...2-34-a-870368/

And : LQ Search, keyword = leach
LQ Search, Tag = leach

.
 
Old 02-23-2012, 01:53 AM   #6
kinjal_patel
LQ Newbie
 
Registered: Feb 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
In reference to previous question I got Error during testing of leach protocol in NS-2.27 in leach.err even though that file is present in that folder

error
couldn't read file "mit/rca/resources/ns-resources-manager.tcl " : no such file or directory
 
Old 02-23-2012, 01:56 AM   #7
kinjal_patel
LQ Newbie
 
Registered: Feb 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Welcome to LQ.

The file "test" has a typo, please see post #6 here
( The ns-2.27 LEACH thread )
http://www.linuxquestions.org/questi...27-a-785379/#6


Other useful info ( ns-2.34 LEACH )
http://www.linuxquestions.org/questi...2-34-a-870368/

And : LQ Search, keyword = leach
LQ Search, Tag = leach

.

yes I have done test as given below as shown in post #6 but still error is there
 
Old 02-23-2012, 02:03 AM   #8
kinjal_patel
LQ Newbie
 
Registered: Feb 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
#!/bin/bash
cd tcl/ex
ns wireless-demo-csci694.tcl
sleep 2

cd ../../
./leach_test


I have done this in test file but can not solve the problem i get error like this



couldn't read file "mit/rca/resources/ns-resource-manager.tcl*": no such file or directory
while executing
"source.orig mit/rca/resources/ns-resource-manager.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/rca/resources/ns-resource-manager.tcl*"
(file "mit/uAMPS/sims/uamps.tcl" line 22)
invoked from within
"source.orig mit/uAMPS/sims/uamps.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/sims/uamps.tcl"
(file "tcl/mobility/leach.tcl" line 18)
invoked from within
"source.orig tcl/mobility/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 tcl/mobility/$opt(rp).tcl"
(file "tcl/ex/wireless.tcl" line 187)
 
Old 02-23-2012, 02:06 AM   #9
kinjal_patel
LQ Newbie
 
Registered: Feb 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Welcome to LQ.

The file "test" has a typo, please see post #6 here
( The ns-2.27 LEACH thread )
http://www.linuxquestions.org/questi...27-a-785379/#6


Other useful info ( ns-2.34 LEACH )
http://www.linuxquestions.org/questi...2-34-a-870368/

And : LQ Search, keyword = leach
LQ Search, Tag = leach

.

#!/bin/bash
cd tcl/ex
ns wireless-demo-csci694.tcl
sleep 2

cd ../../
./leach_test


I have done this in test file but can not solve the problem i get error like this



couldn't read file "mit/rca/resources/ns-resource-manager.tcl*": no such file or directory
while executing
"source.orig mit/rca/resources/ns-resource-manager.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/rca/resources/ns-resource-manager.tcl*"
(file "mit/uAMPS/sims/uamps.tcl" line 22)
invoked from within
"source.orig mit/uAMPS/sims/uamps.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/sims/uamps.tcl"
(file "tcl/mobility/leach.tcl" line 18)
invoked from within
"source.orig tcl/mobility/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 tcl/mobility/$opt(rp).tcl"
(file "tcl/ex/wireless.tcl" line 187)
 
Old 02-23-2012, 02:26 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,193

Rep: Reputation: 2372Reputation: 2372Reputation: 2372Reputation: 2372Reputation: 2372Reputation: 2372Reputation: 2372Reputation: 2372Reputation: 2372Reputation: 2372Reputation: 2372
Please edit posts #8 and #9 to use CODE tags :
Write [/code] at code text end, and [code] at text start.
Or use the # button in the 'Advanced Editor'.
http://www.linuxquestions.org/questi....php?do=bbcode


Quote:
"mit/rca/resources/ns-resource-manager.tcl*": no such file or directory
? Did you check if the file is present ? ?
> ns-allinone-2.27/ns-2.27/mit/rca/resources/ns-resource-manager.tcl
 
Old 02-23-2012, 05:08 AM   #11
kinjal_patel
LQ Newbie
 
Registered: Feb 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
when I run ./test for leach testing I get following error in leach.err file


couldn't read file "/mit/rca/ns-ranode.tcl": no such file or ..
while executing
"source.orig /mit/rca/ns-ranode.tcl"
 
Old 09-13-2012, 10:26 AM   #12
meeraj
LQ Newbie
 
Registered: Sep 2012
Posts: 1

Rep: Reputation: 0
leach problem

Hi all,
Please help me,urgent !
When i've installed LEACH (mit.tar.gz) with ns-2.27,and i type ./test to test
LEACH protocol but it show error:



"invalid command name "Resource/Energy"
while executing
"Resource/Energy instproc setParams {args} {
$self instvar energyLevel_ alarmLevel_
set energyLevel_ [lindex $args 0]
set alarmLevel_ [lind..."
(file "mit/rca/resources/ns-energy-resource.tcl" line 11)
invoked from within
"source.orig mit/rca/resources/ns-energy-resource.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 $env(RCA_LIBRARY)/resources/ns-energy-resource.tcl"
(file "mit/uAMPS/sims/uamps.tcl" line 18)
invoked from within
"source.orig mit/uAMPS/sims/uamps.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/sims/uamps.tcl"
(file "tcl/mobility/leach.tcl" line 18)
invoked from within
"source.orig tcl/mobility/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 tcl/mobility/$opt(rp).tcl"
(file "tcl/ex/wireless.tcl" line 187)"
 
Old 09-13-2012, 12:51 PM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,193

Rep: Reputation: 2372Reputation: 2372Reputation: 2372Reputation: 2372Reputation: 2372Reputation: 2372Reputation: 2372Reputation: 2372Reputation: 2372Reputation: 2372Reputation: 2372
Post # 12, @meeraj : Welcome to LQ.

Looks like your build went wrong.
mit.tar.gz alone makes no "LEACH". A new Makefile.in is required.
Please download it here, post #4
http://www.linuxquestions.org/questi...each-862835/#4

And : cp Makefile.in ns-allinone-2.27/ns-2.27/
cd ns-allinone-2.27/ns-2.27/
cp ns ns-orig
make clean
./configure
make : And you get a new "ns -leach".

Good luck !

.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LEACH installation geethamit Linux - Software 1 10-17-2011 10:45 AM
Leach on ns2.34 linux_ubuntu Linux - Newbie 2 10-04-2011 02:32 AM
protocol leach ezzati Linux - Newbie 5 05-03-2011 08:42 PM
LEACH on NS2 deepa_2111 Linux - Newbie 1 04-05-2011 07:53 PM
leach in ns2.33 hayet Linux - Newbie 2 03-18-2011 06:03 PM


All times are GMT -5. The time now is 09:43 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration