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 |
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-25-2012, 12:39 PM
|
#2
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,626
|
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.
|
03-27-2012, 03:43 AM
|
#3
|
|
Member
Registered: Mar 2012
Posts: 35
Original Poster
Rep: 
|
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.
|
|
|
|
03-27-2012, 04:38 AM
|
#4
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,626
|
#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.
|
03-27-2012, 07:08 AM
|
#5
|
|
Member
Registered: Mar 2012
Posts: 35
Original Poster
Rep: 
|
owww. i know,, thanks you knudfl.. 
|
|
|
|
03-27-2012, 08:01 AM
|
#6
|
|
Member
Registered: Mar 2012
Posts: 35
Original Poster
Rep: 
|
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 ?
|
|
|
|
03-27-2012, 08:14 AM
|
#7
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,626
|
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.
.
|
|
|
1 members found this post helpful.
|
03-27-2012, 08:33 AM
|
#8
|
|
Member
Registered: Mar 2012
Posts: 35
Original Poster
Rep: 
|
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 ?
|
|
|
|
03-27-2012, 09:37 AM
|
#9
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,626
|
# 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 \
|
|
|
|
03-27-2012, 09:48 AM
|
#10
|
|
Member
Registered: Mar 2012
Posts: 35
Original Poster
Rep: 
|
okok,,, sorry i don't read it carefully.. Thanks a lot knudfl 
|
|
|
|
04-04-2012, 03:09 PM
|
#11
|
|
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
|
Hi,
I don't know if this is still trouble, but here is described that problem with make ...
|
|
|
|
04-15-2012, 09:55 AM
|
#12
|
|
Member
Registered: Mar 2012
Posts: 35
Original Poster
Rep: 
|
thx lithos.. 
|
|
|
|
04-15-2012, 10:00 AM
|
#13
|
|
Member
Registered: Mar 2012
Posts: 35
Original Poster
Rep: 
|
can you help me how to run "leach algorithm on ns_2.27"?? please..
|
|
|
|
04-20-2012, 06:23 AM
|
#15
|
|
Member
Registered: Mar 2012
Posts: 35
Original Poster
Rep: 
|
sorry, can the leach used to wsn?
|
|
|
|
| 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 03:35 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
|
|