LinuxQuestions.org
Review your favorite Linux distribution.
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-07-2012, 09:27 AM   #226
deepa_2111
Member
 
Registered: Apr 2011
Distribution: -
Posts: 179

Rep: Reputation: 268Reputation: 268Reputation: 268

#224,

To claculate the delay, I wrote separate post processing functions which takes leach.out and the TDMA schedules as input. I was not sure of working with leach.tr
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-15-2012, 12:42 AM   #227
shailu
LQ Newbie
 
Registered: Mar 2012
Posts: 12

Rep: Reputation: Disabled
i did all the steps mentioned to run leach in ns2.34 but i got some error in leach.err and no output in leach.out. can you help me out.
 
Old 03-15-2012, 02:20 AM   #228
shailu
LQ Newbie
 
Registered: Mar 2012
Posts: 12

Rep: Reputation: Disabled
@ everyone
i did all the written steps. but after i run ./test i get leach.err which says invalid command name resource/energy and m using ubuntu 11.10 and i have installed everyhing in gcc 4.4.i tried changing the version 4.3 as mentioned but i culd not. i need help.
 
Old 03-16-2012, 08:10 AM   #229
Alexsan
LQ Newbie
 
Registered: Jan 2012
Posts: 1

Rep: Reputation: Disabled
Thumbs up no such variable error when executing tcl script

[root@Alexsan anonymity-mix]# ns mixroute.tcl
can't read "mixagent_": no such variable
while executing
"set entry_point_ $mixagent_"
(file "mix.tcl" line 11)
invoked from within
"source.orig mix.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 mix.tcl"
(file "mixroute.tcl" line 73)
plz anyone can reply me with the answer
 
Old 03-16-2012, 10:22 AM   #230
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,276

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
Post #229, @Alexan : Welcome to LQ.
This thread is about {LEACH + ns-2.34} only.
Please do not ask off topic questions in another LQ members thread.
Start your own thread http://www.linuxquestions.org/questions/linux-newbie-8/
> New Thread.

mixroute.tcl :
http://orbit.dtu.dk/app;jsessionid=1...304962bcb545a3
.
 
Old 03-16-2012, 09:59 PM   #231
shailu
LQ Newbie
 
Registered: Mar 2012
Posts: 12

Rep: Reputation: Disabled
i tried with ubuntu 10.10 too but i again get same result with leach.err that resource/energy failed. i went to the site that has given gcc4.1 and installed it tried running make file. i am not able to do it. could you please help me..
 
Old 03-17-2012, 05:29 AM   #232
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,276

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
#231, @shailu : Welcome to LQ. Use a gcc/g++ 4.1 compiler: Install g++-4.1.
Ubuntu 10.10 , Synaptic :
Settings > Repositories > Other Software
... Tick the 3 Lucid entries, and then "Reload".
Now the g++-4.1 package can be installed. (Binary names = gcc-4.1, g++-4.1).

Or install the g++41-compat :
sudo dpkg -i gcc41-compat-4.1.2_i386.deb g++41-compat-4.1.2_i386.deb

gcc41-compat https://docs.google.com/open?id=0B7S...RjNjJhOTZjNjI2
g++41-compat https://docs.google.com/open?id=0B7S...hjMjljN2M2MGU4
( Binary names = gcc41, g++41 ).


About leach.err : Please read the other "Long LEACH thread" ..
http://www.linuxquestions.org/questi...2-27-a-785379/

.
 
Old 03-18-2012, 02:22 AM   #233
shailu
LQ Newbie
 
Registered: Mar 2012
Posts: 12

Rep: Reputation: Disabled
i see a lot of people having trouble just the way i am having, to install leach with ns2. its been 15 days i've been reading forums and try installing. but sadly i couldn't. i request the experts, if possible, could you please make some virtual image(possiblye vmware) with ns2(leach) installed, and upload it somewhere?. a lot of us come from windows background, and most of us are using ns2 in virtual environment anyway. this can be a lifesaver for most of us.
thanks
 
Old 03-19-2012, 01:32 PM   #234
TSE_2011
LQ Newbie
 
Registered: Mar 2012
Posts: 10

Rep: Reputation: Disabled
Install Leach in fedora14

hi.
please say me Impelemention Leach Algorithm in Fedroa 14 & ns-2.34.
please say me from first.because i am Amatuor in subject.
Tnx
 
Old 03-19-2012, 06:10 PM   #235
TSE_2011
LQ Newbie
 
Registered: Mar 2012
Posts: 10

Rep: Reputation: Disabled
Response

void format_imep(Packet *p, int offset);
void format_aodv(Packet *p, int offset);
void format_aomdv(Packet *p, int offset);
#ifdef MIT_uAMPS
void format_rca(Packet *p, int offset);
#endif
#ifdef MIT_uAMPS
#define ADV_CHAR 'A'
#define REQ_CHAR 'R'
#define DATA_CHAR 'D'
#endif

add these lines to CMU_Trace.h to class CMUTrace
 
Old 03-19-2012, 06:12 PM   #236
TSE_2011
LQ Newbie
 
Registered: Mar 2012
Posts: 10

Rep: Reputation: Disabled
void format_imep(Packet *p, int offset);
void format_aodv(Packet *p, int offset);
void format_aomdv(Packet *p, int offset);
#ifdef MIT_uAMPS
void format_rca(Packet *p, int offset);
#endif
#ifdef MIT_uAMPS
#define ADV_CHAR 'A'
#define REQ_CHAR 'R'
#define DATA_CHAR 'D'
#endif

add these lines to CMU_Trace.h to class CMUTrace
 
Old 03-19-2012, 06:13 PM   #237
TSE_2011
LQ Newbie
 
Registered: Mar 2012
Posts: 10

Rep: Reputation: Disabled
???
 
Old 03-19-2012, 07:17 PM   #238
TSE_2011
LQ Newbie
 
Registered: Mar 2012
Posts: 10

Rep: Reputation: Disabled
Thumbs up

deepa_2111.
Tnx About all thing.

but i want see Wave figure for energy,coverage ... in leach
What should I do?
please help me...
 
Old 03-22-2012, 03:51 AM   #239
shailu
LQ Newbie
 
Registered: Mar 2012
Posts: 12

Rep: Reputation: Disabled
@knudfl
Thanks i finally managed to install leach with ns2.34.
 
Old 03-22-2012, 04:27 AM   #240
TSE_2011
LQ Newbie
 
Registered: Mar 2012
Posts: 10

Rep: Reputation: Disabled
hi shailu.

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;
 
  


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 05:23 AM
labview stopped at "init tmp resource files" on FC4 baosheng Linux - Software 2 09-28-2007 12:02 PM
ORiNOCO WLAN card not working - "failed to allocate resource" hauneboo Linux - Laptop and Netbook 1 11-29-2005 10:08 AM
What "kernel opts" allow PC to power down with "turning energy off"? kornerr Linux - General 1 03-10-2005 01:07 PM
nvidia insmod: "Device or resource busy" w/GeForce 4 MX KeithSpook Linux - Hardware 4 03-03-2004 01:21 PM


All times are GMT -5. The time now is 08:06 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration