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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
03-07-2012, 08:27 AM
|
#226
|
|
Member
Registered: Apr 2011
Posts: 94
Rep: 
|
#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
|
|
|
|
03-14-2012, 11:42 PM
|
#227
|
|
LQ Newbie
Registered: Mar 2012
Posts: 12
Rep: 
|
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.
|
|
|
|
03-15-2012, 01:20 AM
|
#228
|
|
LQ Newbie
Registered: Mar 2012
Posts: 12
Rep: 
|
@ 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.
|
|
|
|
03-16-2012, 07:10 AM
|
#229
|
|
LQ Newbie
Registered: Jan 2012
Posts: 1
Rep: 
|
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
|
|
|
|
03-16-2012, 08:59 PM
|
#231
|
|
LQ Newbie
Registered: Mar 2012
Posts: 12
Rep: 
|
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..
|
|
|
|
03-17-2012, 04:29 AM
|
#232
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,633
|
#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/
.
|
|
|
|
03-18-2012, 01:22 AM
|
#233
|
|
LQ Newbie
Registered: Mar 2012
Posts: 12
Rep: 
|
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
|
|
|
|
03-19-2012, 12:32 PM
|
#234
|
|
LQ Newbie
Registered: Mar 2012
Posts: 10
Rep: 
|
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
|
|
|
|
03-19-2012, 05:10 PM
|
#235
|
|
LQ Newbie
Registered: Mar 2012
Posts: 10
Rep: 
|
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
|
|
|
|
03-19-2012, 05:12 PM
|
#236
|
|
LQ Newbie
Registered: Mar 2012
Posts: 10
Rep: 
|
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
|
|
|
|
03-19-2012, 05:13 PM
|
#237
|
|
LQ Newbie
Registered: Mar 2012
Posts: 10
Rep: 
|
???
|
|
|
|
03-19-2012, 06:17 PM
|
#238
|
|
LQ Newbie
Registered: Mar 2012
Posts: 10
Rep: 
|
deepa_2111.
Tnx About all thing.
but i want see Wave figure for energy,coverage ... in leach
What should I do?
please help me...
|
|
|
|
03-22-2012, 02:51 AM
|
#239
|
|
LQ Newbie
Registered: Mar 2012
Posts: 12
Rep: 
|
@knudfl
Thanks i finally managed to install leach with ns2.34. 
|
|
|
|
03-22-2012, 03:27 AM
|
#240
|
|
LQ Newbie
Registered: Mar 2012
Posts: 10
Rep: 
|
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;
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:23 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|