LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-25-2012, 11:04 AM   #1
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Rep: Reputation: Disabled
Smile LEACH protocol installation on NS2.27


Hello,

i am new user LQ.
i want download leach and ns 2.27 but i can't download mit.tar.gz from link
http://www.internetworkflow.com/down...ach/mit.tar.gz
http://www.internetworkflow.com/downloads/ns2leach/
and http://www.internetworkflow.com/down...leach/Makefile
because this link not open now.
please give me another link for download mit.tar.gz.
please can you help me?
thanks before.
 
Old 03-25-2012, 12:39 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ. .. ..

The original links are often down. Or gone forever now ?
New info, e.g. post # 2, here
http://www.linuxquestions.org/questi...ocol-933441/#2
>> http://www.linuxquestions.org/questi...each-862835/#4

And a new file, that makes things easier : Makefile.in .
HOWTO, and the attached file, post # 5 in the above link.

.

Last edited by knudfl; 03-27-2012 at 08:24 AM.
 
1 members found this post helpful.
Old 03-27-2012, 03:43 AM   #3
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
thanks a lot knufdl..

but, i am confused with the step "Place the mit.tar.gz package into the ns-allione-2.27/ns-2.27 directory"
can you help me again? I don't understand with the step.
 
Old 03-27-2012, 04:38 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
#3
Quote:
"Place the mit.tar.gz package into the ns-allione-2.27/ns-2.27 directory"
Means : Move the package mit.tar.gz to ns-allione-2.27/ns-2.27/ .

Actually it can be placed anywhere, when pointed to.
When mit.tar.gz is in ns-allione-2.27/ns-2.27/ :
cd ns-allione-2.27/ns-2.27/ && tar xvf mit.tar.gz .

And when mit.tar.gz is in e.g. /home/lubelube/Downloads/ :
cd ns-allione-2.27/ns-2.27/ && tar xvf /home/lubelube/Downloads/mit.tar.gz

.
 
1 members found this post helpful.
Old 03-27-2012, 07:08 AM   #5
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
owww. i know,, thanks you knudfl..
 
Old 03-27-2012, 08:01 AM   #6
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
sorry knufdl, may i ask you again?
in step 2 : Edit the file in ns-allione2.27/ns-2.27/Makefile.in

Add –DMIT_uAMPS to the DEFINE list
Add -I./mit/rca –I./mit/uAMPS to the INCLUDE list

its mean: do i add the command –DMIT_uAMPS to the DEFINE list and -I./mit/rca –I./mit/uAMPS to the INCLUDE list ?
 
Old 03-27-2012, 08:14 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
Add -I./mit/rca –I./mit/uAMPS to the INCLUDE list
That's Makefile.in , line 71.

The complete Makefile.in is attached as Makefile.in.leach.txt.
Just rename it to Makefile.in , and use it.

.
Attached Files
File Type: txt Makefile.in.leach.txt (17.5 KB, 159 views)
 
1 members found this post helpful.
Old 03-27-2012, 08:33 AM   #8
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
ow, its mean i just rename Makefile.in.leach.txt to Makefile.in ? do i need add the following –DMIT_uAMPS to the DEFINE list and -I./mit/rca –I./mit/uAMPS to the INCLUDE list ?
 
Old 03-27-2012, 09:37 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 8

Please read the new Makefile.in ( It's a text file )
and find that the editing already has been done.

Code:
diff Makefile.in.orig Makefile.in.leach.txt
70,71c70,71
<       -I./diffusion3/filter_core -I./asim/ -I./qs
<
---
>       -I./diffusion3/filter_core -I./asim/ -I./qs \
>       -I./mit/rca –I./mit/uAMPS
150c150
<       tools/random.o tools/rng.o tools/ranvar.o common/misc.o common/timer-handler.o \
---
>       tools/random.o tools/rng.o tools/ranvar.o common/misc.o common/timer-handler.o \
201a202,204
>         mit/rca/energy.o mit/rca/rcagent.o \
>         mit/rca/rca-ll.o mit/rca/resource.o \
>         mac/mac-sensor-timers.o mac/mac-sensor.o mit/uAMPS/bsagent.o \
 
Old 03-27-2012, 09:48 AM   #10
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
okok,,, sorry i don't read it carefully.. Thanks a lot knudfl
 
Old 04-04-2012, 03:09 PM   #11
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi,

I don't know if this is still trouble, but here is described that problem with make ...
 
Old 04-15-2012, 09:55 AM   #12
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
thx lithos..
 
Old 04-15-2012, 10:00 AM   #13
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
can you help me how to run "leach algorithm on ns_2.27"?? please..
 
Old 04-15-2012, 12:57 PM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 13

There may be some solutions here, page 17, posts by @deepa_2111
http://www.linuxquestions.org/questi...68/page17.html

The other long LEACH thread :
http://www.linuxquestions.org/questi...2-27-a-785379/

( LQ Search : Tag = leach )

.

Last edited by knudfl; 04-15-2012 at 01:07 PM.
 
Old 04-20-2012, 06:23 AM   #15
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
sorry, can the leach used to wsn?
 
  


Reply

Tags
leach, ns2



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
codes for leach protocol in ns2 shaddrack yaw nusenu Linux - Newbie 4 09-14-2014 10:16 AM
Leach Protocol for ns2.34 pushpita Linux - Software 36 07-08-2013 04:06 AM
LEACH protocol installation on NS2.27 Scofield Linux - General 255 03-08-2012 05:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:40 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