LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Closed Thread
 
Search this Thread
Old 04-06-2010, 06:01 PM   #31
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,273

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663

Post # 30 , @ omegabullit.
Well, I don't know, why I didn't miss any ' libintl.so ' for
ns-2.27 on Ubuntu. And no libintl at all is available, it seems.
A few Linux include a libintl package with libintl.so.X.x.x ,
and a 'gettext-devel' package with the link libintl.so , etc.

The option, I can find for adding the files, is to rebuild the original
gettext source, Ubuntu http://packages.ubuntu.com/source/jaunty/gettext

http://archive.ubuntu.com/ubuntu/poo...17.orig.tar.gz
>> gettext_0.17.orig.tar.gz

cd gettext-0.17/ &&
./configure --prefix=/usr/ --with-included-gettext --enable-shared
&& make && sudo make install
.....
( Or use a --prefix/home/'name'/<result> , cp libintl.so.8.0.2
to /usr/lib/ , and create the links, libintl.so , libintl.so.8 ,
to libintl.so.8.0.2 .)

Last edited by knudfl; 04-07-2010 at 03:18 AM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 04-07-2010, 12:25 AM   #32
elzohrry2006
LQ Newbie
 
Registered: Mar 2010
Posts: 3

Rep: Reputation: 0
can any one give us simple example of leach protocol

the ./test work with me
but i open the script file wireless-demo-csci694.tcl
the protocol is
set opt(adhocRouting) DSDV
not leach

thanks
 
Old 04-09-2010, 04:34 AM   #33
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,273

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
Post # 32 @elzohrry2006

I guess, you can just Google .. example leach protocol ns2 ..
and find e.g. http://ns2.blogspot.com/

With those 1,880 hits, you will probably find a solution.
.....
 
Old 04-10-2010, 02:52 AM   #34
maunik
LQ Newbie
 
Registered: Mar 2010
Posts: 6

Rep: Reputation: 0
hii sir
i complete install leach protocol in ns 2.27..
but after i seen in root/ns-allinone-2.27/ns2.27/mit/leach_sims/leach.err
following error occured
couldn't read file "/mit/rca/ns-ranode.tcl": no such file or directory
while executing
"source.orig /mit/rca/ns-ranode.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source $env(RCA_LIBRARY)/ns-ranode.tcl"
(file "mit/uAMPS/sims/uamps.tcl" line 9)
invoked from within
"source.orig mit/uAMPS/sims/uamps.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source mit/uAMPS/sims/uamps.tcl"
(file "tcl/mobility/leach.tcl" line 18)
invoked from within
"source.orig tcl/mobility/leach.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source tcl/mobility/$opt(rp).tcl"
(file "tcl/ex/wireless.tcl" line 187)


i dont know whts is this error ?
 
Old 04-11-2010, 06:11 AM   #35
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,273

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
Post # 34
Quote:
... in root/ns-allinone-2.27/ns2.27/mit/leach_sims/leach.err
following error occured
couldn't read file "/mit/rca/ns-ranode.tcl": no such file or ..
while executing
"source.orig /mit/rca/ns-ranode.tcl"
What do you mean by " root/ns-allinone-2.27 "
Wrong location ? /home/"name"/<dir>/ns-allinone-2.27 is default.
And what is "source.orig<space>/mit/.." ? ? One space too many ?
Or executed from a wrong location.

The missing file ( which causes the error = missing ) is here :
ns-allinone-2.27/ns-2.27/mit/rca/ns-ranode.tcl
.....
 
Old 04-12-2010, 01:17 AM   #36
maunik
LQ Newbie
 
Registered: Mar 2010
Posts: 6

Rep: Reputation: 0
hii sir
file at
ns-allinone-2.27/ns-2.27/mit/rca/ns-ranode.tcl
is present ..
also error occured ...
 
Old 04-15-2010, 11:45 AM   #37
sahel_s
LQ Newbie
 
Registered: Apr 2010
Posts: 4

Rep: Reputation: 0
runing leach algorithm on ns2.35 ubuntu 8.04

Quote:
Originally Posted by emtarik05 View Post
I modified MIT LEACH to work on NS2.34 ubuntu 9.10
its ok thank you.
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)

thx
 
Old 04-15-2010, 02:04 PM   #38
maunik
LQ Newbie
 
Registered: Mar 2010
Posts: 6

Rep: Reputation: 0
@knudfl
sir
please give me the proper step for install leach protocol in ns 2.27..
urgently
thanks you...
 
Old 04-15-2010, 02:59 PM   #39
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,273

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
@ sahel_s : Welcome to LQ. . .. Either contact @emtarik05
http://www.linuxquestions.org/questi...ember&u=516518
for the "ns-2.34 method", or use ns-allinone-2.27 ...
... please read all the LEACH treads ...
http://www.linuxquestions.org/questi...atch-791222/#2
http://www.linuxquestions.org/questi...10-a-782356/#3

General install instructions are in "ns2leach.pdf"
http://www.linuxquestions.org/questi...2-27-a-785379/
post # 3, or you can easily find it with Google.


Post # 38 @ maunik,
please see the above link(s) ns2leach.pdf etc.
http://www.linuxquestions.org/questi...0&d=1264710405
.....
 
1 members found this post helpful.
Old 04-16-2010, 08:25 AM   #40
sahel_s
LQ Newbie
 
Registered: Apr 2010
Posts: 4

Rep: Reputation: 0
dear knudf
as i told you,i read the posts,but finalyy i decide to install ns2.27 by using steps which i found them in posts(http://cypress.tistory.com/entry/ns2-227-ubuntu)
but in step 1,part3,it gives me this problem:
"~$ wget http://www.tekno.chalmers.se/~yushen...7-gcc410.patch
--05:10:27-- http://www.tekno.chalmers.se/~yushen...7-gcc410.patch
=> `ns-2.27-gcc410.patch'
Resolving www.tekno.chalmers.se... 129.16.30.200
Connecting to www.tekno.chalmers.se|129.16.30.200|:80... failed: Connection refused.
"
so now ,what shoud i do?how can i download the Patch for compiling NS-2.27 with GCC 4.1.x: ns-2.27-gcc410.patch?
please help me.

best regards

Last edited by sahel_s; 04-16-2010 at 08:27 AM.
 
Old 04-16-2010, 01:31 PM   #41
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,273

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
The " mit.tar.gz " link is up again
http://www.internetworkflow.com/down...ach/mit.tar.gz
http://www.internetworkflow.com/downloads/ns2leach/

Found it here today http://ranlog.blogspot.com/
http://ranlog.blogspot.com/search/label/LEACH
... May be these instructions will do too.

The http://norae.tistory.com/67 link is also working today:
'ns-2.27-gcc410.patch' ( Never had that luck before ! )


And by the way, all files are always available from
http://www.pudn.com ? ? , also the 'ns-2.27-gcc410.patch' ?
but come with a price, $ X.xx .
http://en.pudn.com/login.asp ( Unless you upload some (new) code.)
http://en.pudn.com/search_db.asp?key...7-gcc410.patch
http://www.pudn.com/downloads227/sou...il1067570.html
.....
Attached Files
File Type: txt ns-2.27-gcc410.patch.txt (26.7 KB, 55 views)

Last edited by knudfl; 04-16-2010 at 01:33 PM.
 
Old 04-19-2010, 03:07 PM   #42
WSNs
LQ Newbie
 
Registered: Mar 2010
Posts: 10

Rep: Reputation: 0
Thanks all,

I am new in ns-2 and I want to run LEACH. Actually, My OS is Ubuntu 9.10.

MY question is: Should I install ns-2.34 then install ns-2.27 I am confused about what is written in different #posts?

Can you give me clear steps to run leach on ubuntu 9.10?

Thanks alot

Last edited by WSNs; 04-21-2010 at 06:14 AM.
 
Old 04-19-2010, 04:18 PM   #43
WSNs
LQ Newbie
 
Registered: Mar 2010
Posts: 10

Rep: Reputation: 0
LEACH on ns2.34

Quote:
Originally Posted by emtarik05 View Post
I modified MIT LEACH to work on NS2.34 ubuntu 9.10
its ok thank you.
Hi emtarik,

I need to run LEACH on my ns-2.34. plz send my steps and any files needed to run it

Kind Regards,
Naif
 
Old 04-19-2010, 04:20 PM   #44
WSNs
LQ Newbie
 
Registered: Mar 2010
Posts: 10

Rep: Reputation: 0
thanks alot

Last edited by WSNs; 04-21-2010 at 06:08 AM.
 
Old 04-19-2010, 04:21 PM   #45
zeost
LQ Newbie
 
Registered: Apr 2010
Location: iran
Posts: 1

Rep: Reputation: 0
Question ns_2.35

I need help for run "leach algorithm on ns_2.35".plz
 
  


Closed Thread

Tags
leach, leach-ns227, ns2, ns227


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in simulating Black Hole Attack in AODV Protocol through NS2 in FC8 shyan Linux - Newbie 1 03-21-2009 06:28 AM
NS2 installation ds_priyaa Fedora 2 05-28-2008 03:23 AM
NS2 installation eby83 Linux - Newbie 2 06-11-2007 02:08 AM
ns2 installation pranoti Linux - Software 2 06-11-2007 01:45 AM
LXer: Interview with Bernard Leach (iPodLinux) LXer Syndicated Linux News 0 10-31-2006 12:33 PM


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

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