LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (http://www.linuxquestions.org/questions/ubuntu-63/)
-   -   installing leach patch in ns2.34 in ubuntu9.10 (http://www.linuxquestions.org/questions/ubuntu-63/installing-leach-patch-in-ns2-34-in-ubuntu9-10-a-799883/)

g_vaibh 04-04-2010 12:49 AM

installing leach patch in ns2.34 in ubuntu9.10
 
how to add new patch for leach protocol in ns2.34 in ubuntu9.10

knudfl 04-04-2010 02:41 AM

Welcome to LQ. .... :) ....

The LQ member @ emtarik05 says here in post # 21,
QUOTE ...
"" I modified MIT LEACH to work on NS2.34 ubuntu 9.10 ""
http://www.linuxquestions.org/questi...379/page2.html

May be send a message to emtarik05 asking
for the files and the method ?
http://www.linuxquestions.org/questi...ember&u=516518
I did ask, but got no response so far.

.....
.....

Actually, it's no big problem using ns-allinone-2.27
on Ubuntu, please read post # 3 here :
http://www.linuxquestions.org/questi...10-a-782356/#3

More info : LQ Search http://www.linuxquestions.org/questions/search.php
>>> 1) 'Tag Name' = ns2 ,,, 2) 'Tag Name' = leach

Good luck !
.....

sahel_s 04-15-2010 10:54 AM

Quote:

Originally Posted by knudfl (Post 3923567)
Welcome to LQ. .... :) ....

The LQ member @ emtarik05 says here in post # 21,
QUOTE ...
"" I modified MIT LEACH to work on NS2.34 ubuntu 9.10 ""
http://www.linuxquestions.org/questi...379/page2.html

May be send a message to emtarik05 asking
for the files and the method ?
http://www.linuxquestions.org/questi...ember&u=516518
I did ask, but got no response so far.

.....
.....

Actually, it's no big problem using ns-allinone-2.27
on Ubuntu, please read post # 3 here :
http://www.linuxquestions.org/questi...10-a-782356/#3

More info : LQ Search http://www.linuxquestions.org/questions/search.php
>>> 1) 'Tag Name' = ns2 ,,, 2) 'Tag Name' = leach

Good luck !
.....





hi

i installed ns2.35 on ubuntu8.04 lts Desktop edition.
and now i want tu run leach algorithm on it.
i dont know what should i do,
please tell me the steps of runnin leach algorithm.and send me the url of everything that i have to download it or email them for me(sahel_652003@yahoo.com)
i read ur posts about ns2.27,but they didnt work for me,may be beacuse of the differnce between versions!

best regards

knudfl 04-16-2010 11:27 AM

'ns-allinone-2.27' + LEACH .. .. Ubuntu 8.04 Hardy LTS
 
1 Attachment(s)
@ sahel_s , post # 3 , Ubuntu 8.04 Hardy LTS ..

1) Patching otcl-1.13 ( To be usable for LEACH / g++ 3.3.3 too )
http://nsnam.isi.edu/nsnam/index.php/Troubleshooting
patch -p1 < otcl-113-configure.in.patch

The ns-allinone-2.27 "./install" runs with no errors.

2) Tcl,tk : sudo apt-get install tcl8.4-dev tk8.4-dev
cd /usr/local/include/
sudo ln -s /usr/include/tcl8.4/*.h .
.. where the 'period' ( . ) means the current directory.

3) Install otcl and tclcl to be used by LEACH :
./configure --prefix=/usr/ && sudo make install

4) A gcc, g++ version 3.3.3 is required.

5) The "LEACH" files :
cd ns-allinone-2.27/ns-2.27 && tar xvf mit.tar.gz
make clean
make -f 1-LEACH-Makefile-modified

A missing libintl.so ?
http://www.linuxquestions.org/questi...379/page3.html
post # 31 : You will have to build gettext with libintl*
.....

./test : shows LEACH is OK. The modified 'test' script, post # 6 here
http://www.linuxquestions.org/questi...27-a-785379/#6
.....

keepwalking 11-05-2010 11:19 AM

adding LEACH ns2.34
 
Hello guys

Im want to add LEACH on NS2.34 but I don't understand how to do it. please help me on it.

knudfl 11-06-2010 01:07 PM

Post #5, @keepwalking : Welcome to LQ.

May be something here
http://www.linuxquestions.org/questi...379/page6.html

> Posts #68 #78 #88 , etc. by @emtarik05.
........

knudfl 01-21-2011 02:30 AM

Message from @keepwalking :
""I'm do my research based on the LEACH protocol, can you please help me
to find the ns2.34 pakage that is having LEACH add on it. ... ""


Answer : The patch is here
https://docs.google.com/uc?id=0B7S25...CJzYt5QP&hl=en

Please read the LQ leach threads. LQ Search → Tag = leach.

..

keepwalking 01-21-2011 03:00 AM

@knudfl
Thank you for send the LEACH package to me, now Im still need to know how to add it on ns2.34.

knudfl 01-26-2011 05:45 AM

Post # 8

Sorry, I don't know, how to use the files.
May be one of the files has some explanation ?
Or it is obvious, where they should be copied to ?

Otherwise, the usual suggestion is to ask @emtarik05 or @nour-eddine for information.
EDIT : See post #5 here
http://www.linuxquestions.org/questi...34-a-870368/#5

And by the way, why not use ns-allinone-2.27 ? Which is very well documented.
A new "documentation" here ( post # 8 ) by @bnkdul
http://www.linuxquestions.org/questi...sion-852647/#8 EDIT >>>

EDIT : http://www.linuxquestions.org/questi...34-a-870368/#5
And : #9, # 11 http://www.linuxquestions.org/questi...dora13-907076/

..

TSE_2011 03-20-2012 03:38 AM

but i want see Wave figure for energy,coverage ... in leach
What should I do?
please help me...

shahidz 04-28-2014 11:07 PM

1 Attachment(s)
respected sir i already patch leach, leach-c and pegasis but we need .awk file to analyze the output. below file is my .tr file please give me some guidance about .awk file.
thanks

John VV 04-29-2014 12:39 AM

so you patched the dead Ubuntu 9

9 has not been supported in many years

knudfl 04-29-2014 03:37 AM

Post #11, @ shahidz / Ubuntu 12.04?
Quote:

I already patch leach, leach-c and pegasis
Which patch ? Please specify.
I.e. there is no out.tr with e.g. leach+pegasis-ns234-files-2.tar.gz
https://drive.google.com/file/d/0B7S...it?usp=sharing
... There are leach.tr, leach-c.tr, pegasis.tr .

Awk script : Write an awk script (or a perl script).
Or use a script from `awk_scripts-04.2014.tar.bz2
https://drive.google.com/file/d/0B7S...it?usp=sharing

-

widget 04-29-2014 05:17 PM

Quote:

Originally Posted by John VV (Post 5161025)
so you patched the dead Ubuntu 9

9 has not been supported in many years

And reopened a thread that has been dead for years.


All times are GMT -5. The time now is 11:51 AM.