LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
Search this Thread
Old 03-22-2012, 08:32 PM   #241
shailu
LQ Newbie
 
Registered: Mar 2012
Posts: 12

Rep: Reputation: Disabled

Hello TSE_2011
u have to provide path in the uAMPS directory. the answer is given by deepa in few page ahead in this same thread try that it will work.
 
1 members found this post helpful.
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-28-2012, 08:05 AM   #242
prat810
LQ Newbie
 
Registered: Feb 2012
Posts: 3

Rep: Reputation: Disabled
@deepa_2111...need help..!! what to do

leach.err:

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 "/home/sameep/ns-allinone-2.34/ns-2.34/mit/rca/resources/ns-energy-resource.tcl" line 11)
invoked from within
"source.orig /home/sameep/ns-allinone-2.34/ns-2.34/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 /home/sameep/ns-allinone-2.34/ns-2.34/mit/rca/resources/ns-energy-resource.tcl"
(file "mit/uAMPS/sims/uamps.tcl" line 30)
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 03-29-2012, 08:43 AM   #243
deepa_2111
Member
 
Registered: Apr 2011
Distribution: -
Posts: 179

Rep: Reputation: 264Reputation: 264Reputation: 264
Hi prat,

you have to give the proper address of your libraries.
 
Old 03-29-2012, 09:51 AM   #244
prat810
LQ Newbie
 
Registered: Feb 2012
Posts: 3

Rep: Reputation: Disabled
@deepa_2111.....

where do i change the addresses of libraries...am unable to detect the value to change..!!
please can u give alittle detail on the three errors..??
 
Old 03-30-2012, 02:32 AM   #245
auvikuet
LQ Newbie
 
Registered: Mar 2012
Posts: 13

Rep: Reputation: Disabled
sorry for the duplicate post

Last edited by auvikuet; 03-30-2012 at 04:57 AM. Reason: duplicate post
 
Old 04-04-2012, 04:26 AM   #246
naitikshah
LQ Newbie
 
Registered: Apr 2012
Posts: 2

Rep: Reputation: Disabled
Leach on ns2.34 in ubuntu 11.10

Hi frndzz,

I want help to install leach on ns2.34 in ubuntu 11.10.
Will the steps given for installation in Post 5 work? Ubuntu 11.10 doesnot have gcc4.3 ....
I have gcc 4.4 and 4.6 installed.
 
Old 04-04-2012, 05:04 AM   #247
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,645

Rep: Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532
Post #246 , @naitikshah : Welcome to LQ.

No Ubuntu version can use gcc-4.3 for ns-2.xx any more, I think.
That was more than a year ago.
Some packages got updated. Now it's gcc-4.1 for ns-2.33 , ns-2.34 etc.
And : Ubuntu 11.04, 11.10 ( 12.04 ? ) cannot use old Ubuntu gcc compilers.

There is a fix to install ns-2.34 to Ubuntu 11.10 :
http://erl1.wordpress.com/2011/10/14...neiric-ocelot/
.. But no guarantees with the validate result / leach result.
If it must be Ubuntu : 10.04 produces the best result.
Default OS for ns2 is CentOS 6 ( or CentOS 5 or any Fedora.)

LEACH, ns234 : Please read posts #9, #11 here
http://www.linuxquestions.org/questi...dora13-907076/

.

Last edited by knudfl; 04-04-2012 at 05:11 AM.
 
Old 04-04-2012, 05:14 PM   #248
engr
Member
 
Registered: Jan 2012
Posts: 30

Rep: Reputation: Disabled
mobility models to leach

hi everyone..!
i have installed leach on ns2.34 successfully thnx alot.
now but now i dont know how to generate graphs plz help me.
plz help me to add mobility models to leach.. its urgent plz
Regards
 
Old 04-06-2012, 10:16 AM   #249
meprogrammer
LQ Newbie
 
Registered: Mar 2012
Posts: 4

Rep: Reputation: Disabled
Unhappy

Quote:
Originally Posted by prat810 View Post
leach.err:

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 "/home/sameep/ns-allinone-2.34/ns-2.34/mit/rca/resources/ns-energy-resource.tcl" line 11)
invoked from within
"source.orig /home/sameep/ns-allinone-2.34/ns-2.34/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 /home/sameep/ns-allinone-2.34/ns-2.34/mit/rca/resources/ns-energy-resource.tcl"
(file "mit/uAMPS/sims/uamps.tcl" line 30)
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)
I have the same problem than u please tell me what I should do to resolve it
 
Old 04-13-2012, 01:59 PM   #250
naitikshah
LQ Newbie
 
Registered: Apr 2012
Posts: 2

Rep: Reputation: Disabled
@ knudfl

As per your explanation I have successfully installed leach on ns2.34 on ubuntu 10.04. Thank you for that.

But now I have a doubt regarding the output of it.
By default the number of clusters are set to 5. What does that mean? Does it mean that the number of clusters should be exactly 5 till the end or that they cant be more than 5 or etc?

The reason why I am asking is that my TDMA Schedule files show the number of clusters varying from 1 to 8.
 
Old 04-13-2012, 11:14 PM   #251
deepa_2111
Member
 
Registered: Apr 2011
Distribution: -
Posts: 179

Rep: Reputation: 264Reputation: 264Reputation: 264
@ naitikshah,

if you go through the leach thesis, you'll see that the what is set is the average number of clusters during the simulation, and leach being a probabilistic model, this can vary.
Please go through the leach thesis thoroughly before asking questions based on the leach technique.
 
1 members found this post helpful.
Old 04-13-2012, 11:18 PM   #252
deepa_2111
Member
 
Registered: Apr 2011
Distribution: -
Posts: 179

Rep: Reputation: 264Reputation: 264Reputation: 264
@ prat810 (#224) :

The setting of libraries and paths was discussed in an earlier thread. Please go through the earlier posts.
 
1 members found this post helpful.
Old 04-13-2012, 11:21 PM   #253
deepa_2111
Member
 
Registered: Apr 2011
Distribution: -
Posts: 179

Rep: Reputation: 264Reputation: 264Reputation: 264
@ TSE_2011 (#238)

In leach.out, you will see that you have outputs every 10 sec for energy, total data at the BS and nodes alive in the netwrk. You can plot these against time as done in the leach phd thesis by Heinzelman et al.
 
1 members found this post helpful.
Old 04-14-2012, 04:15 AM   #254
prat810
LQ Newbie
 
Registered: Feb 2012
Posts: 3

Rep: Reputation: Disabled
Libraries..

Thanx Deepa for yr help..!! Leach working successfully..!!
 
Old 04-14-2012, 05:20 PM   #255
meprogrammer
LQ Newbie
 
Registered: Mar 2012
Posts: 4

Rep: Reputation: Disabled
@ MayTamer

plzzz I've the same problem, can you help me how I can add Resource/Energy !!!!!

Last edited by meprogrammer; 04-15-2012 at 04:35 AM.
 
  


Reply

Tags
leach, leach-warning50, ns2, ns2 ns234, pegasis


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
ns:"error when calling class OldSim"&tclsh:"invalid command+child process exits abn." shojaru Linux - Newbie 0 03-05-2009 04:23 AM
labview stopped at "init tmp resource files" on FC4 baosheng Linux - Software 2 09-28-2007 11:02 AM
ORiNOCO WLAN card not working - "failed to allocate resource" hauneboo Linux - Laptop and Netbook 1 11-29-2005 09:08 AM
What "kernel opts" allow PC to power down with "turning energy off"? kornerr Linux - General 1 03-10-2005 12:07 PM
nvidia insmod: "Device or resource busy" w/GeForce 4 MX KeithSpook Linux - Hardware 4 03-03-2004 12:21 PM


All times are GMT -5. The time now is 09:35 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