LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack 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: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,626

Rep: Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891
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: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,626

Rep: Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891
#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: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,626

Rep: Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891
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, 90 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: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,626

Rep: Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891
# 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: 216Reputation: 216Reputation: 216
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: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,626

Rep: Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891
# 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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Leach Protocol for ns2.34 pushpita Linux - Newbie 35 05-17-2013 07:12 AM
LEACH protocol installation on NS2.27 Scofield Linux - General 255 03-08-2012 05:19 PM
codes for leach protocol in ns2 shaddrack yaw nusenu Linux - Newbie 2 02-23-2011 02:56 PM


All times are GMT -5. The time now is 03:35 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration