#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 |
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.
|
@ 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. |
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 |
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 . |
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..
|
#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/ . |
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 |
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 |
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 |
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 |
???
|
deepa_2111.
Tnx About all thing. but i want see Wave figure for energy,coverage ... in leach What should I do? please help me... |
@knudfl
Thanks i finally managed to install leach with ns2.34. :D |
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; |
All times are GMT -5. The time now is 12:37 AM. |