LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-04-2010, 12:49 AM   #1
g_vaibh
LQ Newbie
 
Registered: Apr 2010
Posts: 1

Rep: Reputation: 0
installing leach patch in ns2.34 in ubuntu9.10


how to add new patch for leach protocol in ns2.34 in ubuntu9.10
 
Old 04-04-2010, 02:41 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 !
.....

Last edited by knudfl; 04-05-2010 at 12:46 AM.
 
Old 04-15-2010, 10:54 AM   #3
sahel_s
LQ Newbie
 
Registered: Apr 2010
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
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
 
Old 04-16-2010, 11:27 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
'ns-allinone-2.27' + LEACH .. .. Ubuntu 8.04 Hardy LTS

@ 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
.....
Attached Files
File Type: txt otcl-113-configure.in.patch.txt (412 Bytes, 269 views)

Last edited by knudfl; 04-16-2010 at 11:48 AM.
 
Old 11-05-2010, 11:19 AM   #5
keepwalking
Member
 
Registered: Oct 2010
Posts: 46

Rep: Reputation: 0
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.

Last edited by keepwalking; 01-20-2011 at 07:54 AM.
 
Old 11-06-2010, 01:07 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.
........
 
Old 01-21-2011, 02:30 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.

..
 
Old 01-21-2011, 03:00 AM   #8
keepwalking
Member
 
Registered: Oct 2010
Posts: 46

Rep: Reputation: 0
@knudfl
Thank you for send the LEACH package to me, now Im still need to know how to add it on ns2.34.
 
Old 01-26-2011, 05:45 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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/

..

Last edited by knudfl; 03-20-2012 at 04:46 AM.
 
Old 03-20-2012, 03:38 AM   #10
TSE_2011
LQ Newbie
 
Registered: Mar 2012
Posts: 10

Rep: Reputation: Disabled
but i want see Wave figure for energy,coverage ... in leach
What should I do?
please help me...
 
Old 04-28-2014, 11:07 PM   #11
shahidz
LQ Newbie
 
Registered: Mar 2014
Posts: 16

Rep: Reputation: Disabled
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
Attached Files
File Type: txt 694demo_tr.txt (9.4 KB, 30 views)

Last edited by shahidz; 04-30-2014 at 12:56 AM.
 
Old 04-29-2014, 12:39 AM   #12
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
so you patched the dead Ubuntu 9

9 has not been supported in many years
 
Old 04-29-2014, 03:37 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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

-
 
Old 04-29-2014, 05:17 PM   #14
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Quote:
Originally Posted by John VV View Post
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.
 
Old 04-09-2015, 03:30 AM   #15
ghadghoud
LQ Newbie
 
Registered: Apr 2015
Posts: 11

Rep: Reputation: Disabled
Leach on ns2.35 and ubuntu 10.04

Hello
I am a new user of leach . I've installed ns2.34 on ubuntu 10.04 and every thing goes right . After when i added leach i had this problem :
trace/cmu-trace.cc:1531: error: stray ‘\342’ in program
trace/cmu-trace.cc:1531: error: stray ‘\200’ in program
trace/cmu-trace.cc:1531: error: stray ‘\230’ in program
trace/cmu-trace.cc:1531: error: stray ‘\342’ in program
trace/cmu-trace.cc:1531: error: stray ‘\200’ in program
trace/cmu-trace.cc:1531: error: stray ‘\231’ in program
trace/cmu-trace.cc:1535: error: stray ‘\342’ in program
trace/cmu-trace.cc:1535: error: stray ‘\200’ in program
trace/cmu-trace.cc:1535: error: stray ‘\230’ in program
trace/cmu-trace.cc:1535: error: stray ‘\342’ in program
trace/cmu-trace.cc:1535: error: stray ‘\200’ in program
trace/cmu-trace.cc:1535: error: stray ‘\231’ in program
trace/cmu-trace.cc:1539: error: stray ‘\342’ in program
trace/cmu-trace.cc:1539: error: stray ‘\200’ in program
trace/cmu-trace.cc:1539: error: stray ‘\230’ in program
trace/cmu-trace.cc:1539: error: stray ‘\342’ in program
trace/cmu-trace.cc:1539: error: stray ‘\200’ in program
trace/cmu-trace.cc:1539: error: stray ‘\231’ in program
trace/cmu-trace.cc: In member function ‘void CMUTrace::format_rca(Packet*, int)’:
trace/cmu-trace.cc:1531: error: ‘A’ was not declared in this scope
trace/cmu-trace.cc:1535: error: ‘R’ was not declared in this scope
trace/cmu-trace.cc:1539: error: ‘D’ was not declared in this scope
make: *** [trace/cmu-trace.o] Error 1



I've read some posts in the forum and i tried to fix the problem but i could'nt .
When i do the command ns , it write command not found !!

Thank you for your help
 
  


Reply

Tags
leach, ns2, otcl-113-configure.in



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
LEACH protocol installation on NS2.27 Scofield Linux - General 255 03-08-2012 05:19 PM
LXer: 6 Things to do after installing ubuntu9.10 Karmic Koala LXer Syndicated Linux News 0 10-29-2009 06:00 PM
ns2-802.11e patch - error: stream.h, iostream.h not found shojaru Linux - Newbie 3 06-12-2009 11:11 PM
I cant recompile my patch in ns2 on red hat v5 JawadZaheer Linux - Software 0 12-22-2007 11:31 PM
LXer: Interview with Bernard Leach (iPodLinux) LXer Syndicated Linux News 0 10-31-2006 11:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 03:01 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
Open Source Consulting | Domain Registration