LinuxQuestions.org
Help answer threads with 0 replies.
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 05-24-2013, 11:21 AM   #1
Mohamed69
LQ Newbie
 
Registered: May 2013
Posts: 3

Rep: Reputation: Disabled
Smile problem with running leach protocol in ns2.34 leach.er


Hello Everyone.

My Problem is that when i start ./leach_test i get this Message in leach.err

couldn't read file "tcl/lib/ns-mobilenode.tcl": no such file or directory
while executing
"source.orig tcl/lib/ns-mobilenode.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/lib/ns-mobilenode.tcl"
(file "tcl/ex/wireless.tcl" line 184).

Tnkx for ur replys.
 
Old 05-24-2013, 12:07 PM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
You need to install the ns2-examples package.
jdk
 
1 members found this post helpful.
Old 05-24-2013, 01:22 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,483

Rep: Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633
Welcome to LQ.
Quote:
./leach_test i get this Message in leach.err

couldn't read file "tcl/lib/ns-mobilenode.tcl"
"tcl/lib/ns-mobilenode.tcl" should be present, when you run $ ./leach_test
in ns-allinone-2.34/ns-2.34/
 
1 members found this post helpful.
Old 05-25-2013, 07:11 AM   #4
Mohamed69
LQ Newbie
 
Registered: May 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Tank you for your replaying i changed the directory of the file into ns-allinone-2.34/ns-2.34/ and it runs. but the problem that i don't know how to use the file leach.out to visualize the result? if you can help me i'm little beginner in leach protocol.

Many tanks.
 
Old 05-27-2013, 03:32 AM   #5
bloodstreetboy
Member
 
Registered: May 2012
Posts: 201
Blog Entries: 3

Rep: Reputation: 37
You can take a look at this link.
http://www.linuxquestions.org/questi...2-27-a-785379/
 
Old 05-27-2013, 04:22 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,483

Rep: Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633
# 4 . "visualize the result"

AFAIK, there are no "nam" or other visual outputs from any leach example.
** It's very easy to see if some files will do e.g. a nam simulation :
Example: $ cd ns-allinone-2.34/ns-2.34/mit/uAMPS/sims && grep " \nam\ " *

There are some nice "visual" in the latest leach / pegasis :
exidus-pegasis_ns-234-leach.tar.gz >
> http://www.linuxquestions.org/questions/tags/pegasis/
Starts at post #289.
Visual ""Result of Leach & Leach-c"" : post #425.

-
 
Old 05-28-2013, 12:03 PM   #7
Mohamed69
LQ Newbie
 
Registered: May 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Tank you Sirs for responding,

I used tcl files in this package, and finally arrive to generate the leach.tr for xgraph , but when I try to open it, it shows me an error:

Unknown line type
Error in file `leach.tr' at line ... ( for all line in the file).

A part of leach.tr

PHP Code:
M 0.0 nn 101 x 1000 y 1000 rp leach
M 0.0 sc mit
/uAMPS/sims/nodescen cp none seed 0.0
M 0.0 prop Propagation
/TwoRayGround ant Antenna/OmniAntenna
s 0.000038711 _78_ AGT  
--- 0 rca 2 [0 4e000000 0 0] ------- [A 78 --1
s 0.000051854 _32_ AGT  --- 1 rca 2 [0 20000000 0 0] ------- [A 32 --1
s 0.000066249 _84_ AGT  --- 2 rca 2 [0 54000000 0 0] ------- [A 84 --1
s 0.000077001 _50_ AGT  --- 3 rca 2 [0 32000000 0 0] ------- [A 50 --1
s 0.000150201 _7_ AGT  --- 4 rca 2 [0 7000000 0 0] ------- [A 7 --1
s 0.000163597 _59_ AGT  --- 5 rca 2 [0 3b000000 0 0] ------- [A 59 --1
r 0.000264747 _45_ AGT  --- 0 rca 2 [0 4e000000 ffff0008 0] ------- [A 78 --1
r 0.000264749 _30_ AGT  --- 0 rca 2 [0 4e000000 ffff0008 0] ------- [A 78 --1
r 0.000264754 _87_ AGT  --- 0 rca 2 [0 4e000000 ffff0008 0] ------- [A 78 --1
r 0.000264756 _4_ AGT  --- 0 rca 2 [0 4e000000 ffff0008 0] ------- [A 78 --1
r 0.000264759 _73_ AGT  --- 0 rca 2 [0 4e000000 ffff0008 0] ------- [A 78 --1
r 0.000264759 _76_ AGT  --- 0 rca 2 [0 4e000000 ffff0008 0] ------- [A 78 --1
r 0.000264763 _57_ AGT  --- 0 rca 2 [0 4e000000 ffff0008 0] ------- [A 78 --1
r 0.000264766 _37_ AGT  --- 0 rca 2 [0 4e000000 ffff0008 0] ------- [A 78 --1
r 0.000264768 _13_ AGT  --- 0 rca 2 [0 4e000000 ffff0008 0] ------- [A 78 --1
r 0.000264769 _2_ AGT  --- 0 rca 2 [0 4e000000 ffff0008 0] ------- [A 78 --1
r 0.000264771 _15_ AGT  --- 0 rca 2 [0 4e000000 ffff0008 0] ------- [A 78 --1
r 0.000264772 _28_ AGT  --- 0 rca 2 [0 4e000000 ffff0008 0] ------- [A 78 --1
r 0.000264773 _99_ AGT  --- 0 rca 2 [0 4e000000 ffff0008 0] ------- [A 78 --1
r 0.000264774 _46_ AGT  --- 0 rca 2 [0 4e000000 ffff0008 0] ------- [A 78 --1
r 0.000264780 _41_ AGT  --- 0 rca 2 [0 4e000000 ffff0008 0] ------- [A 78 --1
r 0.000264781 _74_ AGT  --- 0 rca 2 [0 4e000000 ffff0008 0] ------- [A 78 --1
r 0.000264788 _69_ AGT  --- 0 rca 2 [0 4e000000 ffff0008 0] ------- [A 78 --1
r 0.000264788 _9_ AGT  --- 0 rca 2 [0 4e000000 ffff0008 0] ------- [A 78 --1
r 0.000264790 _53_ AGT  --- 0 rca 2 [0 4e000000 ffff0008 0] ------- [A 78 --1
 
Old 01-08-2014, 04:19 AM   #8
mirbaha
LQ Newbie
 
Registered: Dec 2013
Posts: 3

Rep: Reputation: Disabled
Unhappy bad resualt in run leach in ns2.34 in ubuntu 12.04

hi all
I installed ns2 in ubuntu 12.04 and run leach on it without any error(I fixed them)
but there is no valid output I think, I saw this problem later that no one know it.
can any one help me where is the problem?



Creating sensor nodes...
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 (100 == BS)
*** NOTE: no connection pattern specified.
Loading scenario file...
Node 0: (65.745973803916002,92.581722416254564)
Node 1: (21.008649990432268,92.380389195112684)
Node 2: (37.201202259027028,40.606367467253641)
Node 3: (71.218022131928251,61.297971318148988)
Node 4: (35.003944130150579,11.288995440718249)
Node 5: (34.146372151629237,98.076752432657756)
.
.
.
Node 99: (44.071560420129238,10.71598111219517)
Max Distance for this Simulation is 139.0
Load complete...
Starting Simulation...
THRESH = 0.050000000000000003
0: *******************************************
THRESH = 0.050000000000000003
1: *******************************************
THRESH = 0.050000000000000003
2: *******************************************
THRESH = 0.050000000000000003
3: *******************************************
THRESH = 0.050000000000000003
4: *******************************************
THRESH = 0.050000000000000003
5: *******************************************
THRESH = 0.050000000000000003
.
.
.

THRESH = 0.050000000000000003
99: *******************************************
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
0: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
1: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
2: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
3: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
4: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
.
.
.
99: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
.
.
.
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
Warning! There are no nodes in this cluster (11)!
Data being sent to the Base Station
Data was sent to the base station
Warning! There are no nodes in this cluster (26)!
Data being sent to the Base Station
Data was sent to the base station
.
.
Node 0 is DEAD!!!!
Node 1 is DEAD!!!!
Node 2 is DEAD!!!!
Node 3 is DEAD!!!!
Node 4 is DEAD!!!!
Node 5 is DEAD!!!!
.
.
.
Node 94 is DEAD!!!!
Node 95 is DEAD!!!!

At 1.0999999999999999:
Total Energy = 30125.543246939353
Total Data = 0
Total Alive = 4

Simulation complete.

num_nodes is set 101
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 222.8



as we see , at end Total data is 0 and all of the nodes dead!!!
help plsss
 
Old 03-12-2014, 03:13 PM   #9
deepa_2111
Member
 
Registered: Apr 2011
Distribution: -
Posts: 185

Rep: Reputation: 268Reputation: 268Reputation: 268
This issue has already been fixed.
Please go through this website: http://ns2.blogspot.ca/
It talks about your very same issue, as well as the solution.

Quote:
Originally Posted by mirbaha View Post
hi all
I installed ns2 in ubuntu 12.04 and run leach on it without any error(I fixed them)
but there is no valid output I think, I saw this problem later that no one know it.
can any one help me where is the problem?



Creating sensor nodes...
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 (100 == BS)
*** NOTE: no connection pattern specified.
Loading scenario file...
Node 0: (65.745973803916002,92.581722416254564)
Node 1: (21.008649990432268,92.380389195112684)
Node 2: (37.201202259027028,40.606367467253641)
Node 3: (71.218022131928251,61.297971318148988)
Node 4: (35.003944130150579,11.288995440718249)
Node 5: (34.146372151629237,98.076752432657756)
.
.
.
Node 99: (44.071560420129238,10.71598111219517)
Max Distance for this Simulation is 139.0
Load complete...
Starting Simulation...
THRESH = 0.050000000000000003
0: *******************************************
THRESH = 0.050000000000000003
1: *******************************************
THRESH = 0.050000000000000003
2: *******************************************
THRESH = 0.050000000000000003
3: *******************************************
THRESH = 0.050000000000000003
4: *******************************************
THRESH = 0.050000000000000003
5: *******************************************
THRESH = 0.050000000000000003
.
.
.

THRESH = 0.050000000000000003
99: *******************************************
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
0: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
1: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
2: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
3: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
4: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
.
.
.
99: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
.
.
.
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
Warning! There are no nodes in this cluster (11)!
Data being sent to the Base Station
Data was sent to the base station
Warning! There are no nodes in this cluster (26)!
Data being sent to the Base Station
Data was sent to the base station
.
.
Node 0 is DEAD!!!!
Node 1 is DEAD!!!!
Node 2 is DEAD!!!!
Node 3 is DEAD!!!!
Node 4 is DEAD!!!!
Node 5 is DEAD!!!!
.
.
.
Node 94 is DEAD!!!!
Node 95 is DEAD!!!!

At 1.0999999999999999:
Total Energy = 30125.543246939353
Total Data = 0
Total Alive = 4

Simulation complete.

num_nodes is set 101
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 222.8



as we see , at end Total data is 0 and all of the nodes dead!!!
help plsss
 
Old 04-16-2014, 07:10 AM   #10
Echoin
LQ Newbie
 
Registered: Apr 2014
Posts: 4

Rep: Reputation: Disabled
@deepa_2111

I had this prolem too, then I have changed the ns-leach.tcl as the website(http://ns2.blogspot.ca/) said, but it doesn't help.

Here is what I have changed in ns-leach.tcl:
Code:
From:
pp "$nodeID rcvd ADV_CH from $chID at [$ns_ now]" 
set clusterChoices_ [lappend clusterChoices_ $msg] 
set clusterDist_ [lappend clusterDist_ [[$self agent] set distEst_]]

To:
if {$msg != ""} { 
pp "$nodeID rcvd ADV_CH from $chID at [$ns_ now]" 
set clusterChoices_ [lappend clusterChoices_ $msg] 
set clusterDist_ [lappend clusterDist_ [[$self agent] set distEst_]]
} else { 
puts "$nodeID rcvd PHANTOM ADV_CH <$chID, $msg> at [$ns_ now]" 
}
But the leach.err and leach.out are as before.

leach.err
Code:
INITIALIZE THE LIST xListHead
SORTING LISTS ...DONE!
leach.out
Code:
Creating sensor nodes...
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 (100 == BS)
*** NOTE: no connection pattern specified.
Loading scenario file...
Node 0: (65.745973803916002,92.581722416254564)
Node 1: (21.008649990432268,92.380389195112684)
Node 2: (37.201202259027028,40.606367467253641)
Node 3: (71.218022131928251,61.297971318148988)
Node 4: (35.003944130150579,11.288995440718249)
Node 5: (34.146372151629237,98.076752432657756)
Node 6: (75.978135678906995,64.526355389750734)
Node 7: (94.45503554048716,5.7823289678349754)
Node 8: (83.602962402441989,14.98909784247591)
Node 9: (21.767438492629417,45.338745622587737)
Node 10: (8.2976788321033492,59.088131160982016)
Node 11: (94.220422624713009,62.643053551503947)
Node 12: (41.80104012684945,50.081411958710021)
Node 13: (18.290790039250062,13.30818967582108)
Node 14: (70.743881524886874,92.416788773805266)
Node 15: (48.968921345178465,20.661048414493468)
Node 16: (50.240702391714187,95.485097540302704)
Node 17: (18.034359867700545,3.486296443029445)
Node 18: (94.184317995879951,55.832556754272687)
Node 19: (77.781369061107455,71.469810032970187)
Node 20: (93.097224129874832,85.045950806255433)
Node 21: (67.295200735002382,30.438753185066748)
Node 22: (84.124781416787201,85.201271942444734)
Node 23: (77.777536668711122,7.0587910278974055)
Node 24: (37.10080587170124,53.244285682795699)
Node 25: (76.709470747369096,56.074851032381346)
Node 26: (50.021301233219582,8.0098267216281158)
Node 27: (21.157710403743067,97.638755709695985)
Node 28: (14.567212860364101,31.146544139434834)
Node 29: (79.967351481303268,11.276346264070062)
Node 30: (21.551660225517892,18.753410279170335)
Node 31: (88.566562015827074,38.207800005659372)
Node 32: (58.494695116996155,20.340831354419155)
Node 33: (68.352573722765115,1.7065585133184484)
Node 34: (82.128933343165059,40.982698575119812)
Node 35: (96.214952038701142,84.698914449987427)
Node 36: (34.655160938694685,49.28989664152725)
Node 37: (15.292854148565258,26.999674936290681)
Node 38: (83.536654237442022,0.54776868808445001)
Node 39: (6.3483406353501328,96.561058329679554)
Node 40: (1.7073469244443564,95.37975913629856)
Node 41: (47.611803769884546,11.585960449458081)
Node 42: (25.23727404197551,62.864823482402052)
Node 43: (69.088268731296182,66.532566895025113)
Node 44: (12.85180468710689,0.28137620551575732)
Node 45: (29.089886103332923,13.7157387164029)
Node 46: (20.420606583552718,9.134849770523072)
Node 47: (29.42009318127301,63.506097655513372)
Node 48: (46.98329621319813,48.259455220894637)
Node 49: (96.663897576119709,30.126561843849046)
Node 50: (37.124909570964476,58.355159199962003)
Node 51: (75.160673761349486,25.443907000796827)
Node 52: (35.744962392256113,65.582926648474725)
Node 53: (52.248180914785806,35.176634804893581)
Node 54: (13.701165846409818,75.494380609828227)
Node 55: (34.054909382972362,60.861999616428278)
Node 56: (7.6275533100718409,96.288482377439962)
Node 57: (20.523317633440399,35.399465232807891)
Node 58: (58.812167802272441,56.104252792943385)
Node 59: (44.176690999500771,77.645628609529524)
Node 60: (90.080040362700842,75.238375912997114)
Node 61: (31.383969742517902,70.379462498416885)
Node 62: (67.626210892398944,93.726468548982623)
Node 63: (60.756902750933961,41.264534947119898)
Node 64: (33.038856244198442,84.056896243270913)
Node 65: (44.255160654082502,96.485113164635891)
Node 66: (25.296958035462051,65.973702010686381)
Node 67: (20.00969360582982,2.9204331817666223)
Node 68: (83.720485951621313,90.207388899385649)
Node 69: (15.585231974527813,40.993795888961202)
Node 70: (82.727505770850698,1.1894906876559792)
Node 71: (91.769987434041681,78.17880393852424)
Node 72: (51.15779477691175,9.0568155558113084)
Node 73: (17.899046520655531,29.27487265750527)
Node 74: (22.784754691079613,43.372092975011142)
Node 75: (54.766631012208123,62.767422181911492)
Node 76: (32.064611386537841,9.9235735414193815)
Node 77: (85.500510635553155,7.082251742054825)
Node 78: (31.405028715452659,24.317620612828815)
Node 79: (6.2496398139044826,37.69635229264216)
Node 80: (62.592982436806423,0.25581540551773058)
Node 81: (99.489520536497949,20.371656920933937)
Node 82: (86.437870136666049,61.283386946322118)
Node 83: (89.884406835718266,87.225687916961363)
Node 84: (2.1368203694637962,13.539949578018836)
Node 85: (65.932557762569076,28.498315498464887)
Node 86: (71.188582699368055,66.509428278780277)
Node 87: (23.961081460100171,13.896099903572399)
Node 88: (51.751079341280779,80.390488906013999)
Node 89: (22.947043377415763,70.958044226727466)
Node 90: (91.849318608571465,11.497854260493934)
Node 91: (44.436556121537727,45.198734684474182)
Node 92: (55.133841957493615,34.481779595130021)
Node 93: (35.269655350255618,77.097471746195794)
Node 94: (77.207638312693518,28.777121439938025)
Node 95: (57.080041038375363,44.249731974792546)
Node 96: (5.2453003382521217,57.762785003410087)
Node 97: (19.127552313323857,76.771730034040161)
Node 98: (2.466682112993059,57.526273074339272)
Node 99: (44.071560420129238,10.71598111219517)
Max Distance for this Simulation is 139.0
Load complete...
Starting Simulation...
THRESH = 0.050000000000000003
0: *******************************************
THRESH = 0.050000000000000003
1: *******************************************
THRESH = 0.050000000000000003
2: *******************************************
THRESH = 0.050000000000000003
3: *******************************************
THRESH = 0.050000000000000003
4: *******************************************
THRESH = 0.050000000000000003
5: *******************************************
THRESH = 0.050000000000000003
6: *******************************************
THRESH = 0.050000000000000003
7: *******************************************
THRESH = 0.050000000000000003
8: *******************************************
THRESH = 0.050000000000000003
9: *******************************************
THRESH = 0.050000000000000003
10: *******************************************
THRESH = 0.050000000000000003
11: *******************************************
THRESH = 0.050000000000000003
12: *******************************************
THRESH = 0.050000000000000003
13: *******************************************
THRESH = 0.050000000000000003
14: *******************************************
THRESH = 0.050000000000000003
15: *******************************************
15: Is a cluster head at time 0
THRESH = 0.050000000000000003
16: *******************************************
THRESH = 0.050000000000000003
17: *******************************************
THRESH = 0.050000000000000003
18: *******************************************
THRESH = 0.050000000000000003
19: *******************************************
THRESH = 0.050000000000000003
20: *******************************************
THRESH = 0.050000000000000003
21: *******************************************
THRESH = 0.050000000000000003
22: *******************************************
THRESH = 0.050000000000000003
23: *******************************************
THRESH = 0.050000000000000003
24: *******************************************
THRESH = 0.050000000000000003
25: *******************************************
THRESH = 0.050000000000000003
26: *******************************************
THRESH = 0.050000000000000003
27: *******************************************
THRESH = 0.050000000000000003
28: *******************************************
THRESH = 0.050000000000000003
29: *******************************************
THRESH = 0.050000000000000003
30: *******************************************
THRESH = 0.050000000000000003
31: *******************************************
THRESH = 0.050000000000000003
32: *******************************************
THRESH = 0.050000000000000003
33: *******************************************
33: Is a cluster head at time 0
THRESH = 0.050000000000000003
34: *******************************************
34: Is a cluster head at time 0
THRESH = 0.050000000000000003
35: *******************************************
THRESH = 0.050000000000000003
36: *******************************************
THRESH = 0.050000000000000003
37: *******************************************
THRESH = 0.050000000000000003
38: *******************************************
THRESH = 0.050000000000000003
39: *******************************************
THRESH = 0.050000000000000003
40: *******************************************
THRESH = 0.050000000000000003
41: *******************************************
THRESH = 0.050000000000000003
42: *******************************************
THRESH = 0.050000000000000003
43: *******************************************
THRESH = 0.050000000000000003
44: *******************************************
THRESH = 0.050000000000000003
45: *******************************************
THRESH = 0.050000000000000003
46: *******************************************
THRESH = 0.050000000000000003
47: *******************************************
THRESH = 0.050000000000000003
48: *******************************************
THRESH = 0.050000000000000003
49: *******************************************
THRESH = 0.050000000000000003
50: *******************************************
THRESH = 0.050000000000000003
51: *******************************************
THRESH = 0.050000000000000003
52: *******************************************
THRESH = 0.050000000000000003
53: *******************************************
THRESH = 0.050000000000000003
54: *******************************************
THRESH = 0.050000000000000003
55: *******************************************
THRESH = 0.050000000000000003
56: *******************************************
THRESH = 0.050000000000000003
57: *******************************************
THRESH = 0.050000000000000003
58: *******************************************
THRESH = 0.050000000000000003
59: *******************************************
THRESH = 0.050000000000000003
60: *******************************************
THRESH = 0.050000000000000003
61: *******************************************
THRESH = 0.050000000000000003
62: *******************************************
62: Is a cluster head at time 0
THRESH = 0.050000000000000003
63: *******************************************
THRESH = 0.050000000000000003
64: *******************************************
THRESH = 0.050000000000000003
65: *******************************************
THRESH = 0.050000000000000003
66: *******************************************
THRESH = 0.050000000000000003
67: *******************************************
THRESH = 0.050000000000000003
68: *******************************************
THRESH = 0.050000000000000003
69: *******************************************
THRESH = 0.050000000000000003
70: *******************************************
THRESH = 0.050000000000000003
71: *******************************************
THRESH = 0.050000000000000003
72: *******************************************
THRESH = 0.050000000000000003
73: *******************************************
THRESH = 0.050000000000000003
74: *******************************************
THRESH = 0.050000000000000003
75: *******************************************
75: Is a cluster head at time 0
THRESH = 0.050000000000000003
76: *******************************************
THRESH = 0.050000000000000003
77: *******************************************
THRESH = 0.050000000000000003
78: *******************************************
THRESH = 0.050000000000000003
79: *******************************************
THRESH = 0.050000000000000003
80: *******************************************
THRESH = 0.050000000000000003
81: *******************************************
THRESH = 0.050000000000000003
82: *******************************************
THRESH = 0.050000000000000003
83: *******************************************
THRESH = 0.050000000000000003
84: *******************************************
THRESH = 0.050000000000000003
85: *******************************************
THRESH = 0.050000000000000003
86: *******************************************
THRESH = 0.050000000000000003
87: *******************************************
THRESH = 0.050000000000000003
88: *******************************************
THRESH = 0.050000000000000003
89: *******************************************
THRESH = 0.050000000000000003
90: *******************************************
THRESH = 0.050000000000000003
91: *******************************************
THRESH = 0.050000000000000003
92: *******************************************
THRESH = 0.050000000000000003
93: *******************************************
THRESH = 0.050000000000000003
94: *******************************************
THRESH = 0.050000000000000003
95: *******************************************
THRESH = 0.050000000000000003
96: *******************************************
THRESH = 0.050000000000000003
97: *******************************************
THRESH = 0.050000000000000003
98: *******************************************
THRESH = 0.050000000000000003
99: *******************************************
0: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
1: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
2: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
3: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
4: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
5: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
6: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
7: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
8: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
9: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
10: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
11: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
12: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
13: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
14: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
15: Current cluster-head is 15, code is 1,  dist is 139.0
16: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
17: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
18: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
19: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
20: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
21: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
22: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
23: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
24: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
25: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
26: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
27: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
28: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
29: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
30: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
31: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
32: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
33: Current cluster-head is 33, code is 1,  dist is 139.0
34: Current cluster-head is 34, code is 1,  dist is 139.0
35: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
36: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
37: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
38: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
39: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
40: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
41: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
42: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
43: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
44: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
45: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
46: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
47: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
48: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
49: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
50: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
51: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
52: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
53: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
54: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
55: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
56: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
57: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
58: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
59: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
60: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
61: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
62: Current cluster-head is 62, code is 1,  dist is 139.0
63: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
64: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
65: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
66: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
67: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
68: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
69: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
70: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
71: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
72: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
73: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
74: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
75: Current cluster-head is 75, code is 1,  dist is 139.0
76: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
77: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
78: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
79: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
80: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
81: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
82: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
83: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
84: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
85: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
86: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
87: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
88: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
89: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
90: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
91: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
92: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
93: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
94: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
95: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
96: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
97: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
98: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
99: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
Warning!  There are no nodes in this cluster (15)!
Data being sent to the Base Station
Data was sent to the base station
Warning!  There are no nodes in this cluster (33)!
Data being sent to the Base Station
Data was sent to the base station
Warning!  There are no nodes in this cluster (34)!
Data being sent to the Base Station
Data was sent to the base station
Warning!  There are no nodes in this cluster (62)!
Data being sent to the Base Station
Data was sent to the base station
Warning!  There are no nodes in this cluster (75)!
Data being sent to the Base Station
Data was sent to the base station
Node 0 is DEAD!!!!
Node 1 is DEAD!!!!
Node 2 is DEAD!!!!
Node 3 is DEAD!!!!
Node 4 is DEAD!!!!
Node 5 is DEAD!!!!
Node 6 is DEAD!!!!
Node 7 is DEAD!!!!
Node 8 is DEAD!!!!
Node 9 is DEAD!!!!
Node 10 is DEAD!!!!
Node 11 is DEAD!!!!
Node 12 is DEAD!!!!
Node 13 is DEAD!!!!
Node 14 is DEAD!!!!
Node 15 is DEAD!!!!
Node 16 is DEAD!!!!
Node 17 is DEAD!!!!
Node 18 is DEAD!!!!
Node 19 is DEAD!!!!
Node 20 is DEAD!!!!
Node 21 is DEAD!!!!
Node 22 is DEAD!!!!
Node 23 is DEAD!!!!
Node 24 is DEAD!!!!
Node 25 is DEAD!!!!
Node 26 is DEAD!!!!
Node 27 is DEAD!!!!
Node 28 is DEAD!!!!
Node 29 is DEAD!!!!
Node 30 is DEAD!!!!
Node 31 is DEAD!!!!
Node 32 is DEAD!!!!
Node 33 is DEAD!!!!
Node 34 is DEAD!!!!
Node 35 is DEAD!!!!
Node 36 is DEAD!!!!
Node 37 is DEAD!!!!
Node 38 is DEAD!!!!
Node 39 is DEAD!!!!
Node 40 is DEAD!!!!
Node 41 is DEAD!!!!
Node 42 is DEAD!!!!
Node 43 is DEAD!!!!
Node 44 is DEAD!!!!
Node 45 is DEAD!!!!
Node 46 is DEAD!!!!
Node 47 is DEAD!!!!
Node 48 is DEAD!!!!
Node 49 is DEAD!!!!
Node 50 is DEAD!!!!
Node 51 is DEAD!!!!
Node 52 is DEAD!!!!
Node 53 is DEAD!!!!
Node 54 is DEAD!!!!
Node 55 is DEAD!!!!
Node 56 is DEAD!!!!
Node 57 is DEAD!!!!
Node 58 is DEAD!!!!
Node 59 is DEAD!!!!
Node 60 is DEAD!!!!
Node 61 is DEAD!!!!
Node 62 is DEAD!!!!
Node 63 is DEAD!!!!
Node 64 is DEAD!!!!
Node 65 is DEAD!!!!
Node 66 is DEAD!!!!
Node 67 is DEAD!!!!
Node 68 is DEAD!!!!
Node 69 is DEAD!!!!
Node 70 is DEAD!!!!
Node 71 is DEAD!!!!
Node 72 is DEAD!!!!
Node 73 is DEAD!!!!
Node 74 is DEAD!!!!
Node 75 is DEAD!!!!
Node 76 is DEAD!!!!
Node 77 is DEAD!!!!
Node 78 is DEAD!!!!
Node 79 is DEAD!!!!
Node 80 is DEAD!!!!
Node 81 is DEAD!!!!
Node 82 is DEAD!!!!
Node 83 is DEAD!!!!
Node 84 is DEAD!!!!
Node 85 is DEAD!!!!
Node 86 is DEAD!!!!
Node 87 is DEAD!!!!
Node 88 is DEAD!!!!
Node 89 is DEAD!!!!
Node 90 is DEAD!!!!
Node 91 is DEAD!!!!
Node 92 is DEAD!!!!
Node 93 is DEAD!!!!
Node 94 is DEAD!!!!
Node 95 is DEAD!!!!

At 1.0999999999999999:
		Total Energy = 30162.717707844262
		Total Data = 0
		Total Alive = 4

Simulation complete.

num_nodes is set 101
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 222.8
But when I change the platform from Ubuntu 12.04 LTS to Ubuntu 10.04 LTS, these warnings disappear.
I wonder if the OS kernel has something with the problem.If you know something about this, please let me know!

Last edited by Echoin; 04-16-2014 at 07:12 AM.
 
Old 04-15-2018, 03:26 AM   #11
likeyu
LQ Newbie
 
Registered: Apr 2018
Posts: 4

Rep: Reputation: Disabled
i have the same problem as #8 and #10

I have the same problem as #8 and #10.
The data is invalid, and only have the time 1.099s in leach.alive、leach.data and leach.energy.
Code:
leach.alive

1.0999999999999999 0 0
1.0999999999999999 1 0
1.0999999999999999 2 0
1.0999999999999999 3 0
1.0999999999999999 4 0
.................... 0
1.0999999999999999 91 0
1.0999999999999999 92 0
1.0999999999999999 93 0
1.0999999999999999 94 0
1.0999999999999999 95 0
1.0999999999999999 96 1
1.0999999999999999 97 1
1.0999999999999999 98 1
1.0999999999999999 99 1
 
Old 04-15-2018, 04:43 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,483

Rep: Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633
Post #11, @likeyu : Welcome to LQ.

Quite normal when you are using a poor version of LEACH. (And a wrong OS.)

Please read posts #1007 and #1009 here ...
https://www.linuxquestions.org/quest...68/page68.html

-
 
Old 04-15-2018, 09:09 AM   #13
likeyu
LQ Newbie
 
Registered: Apr 2018
Posts: 4

Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by knudfl View Post
Post #11, @likeyu : Welcome to LQ.

Quite normal when you are using a poor version of LEACH. (And a wrong OS.)

Please read posts #1007 and #1009 here ...
https://www.linuxquestions.org/quest...68/page68.html

-
Thank you for your quick reply,i will try it.
 
Old 04-16-2018, 07:55 AM   #14
likeyu
LQ Newbie
 
Registered: Apr 2018
Posts: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Post #11, @likeyu : Welcome to LQ.

Quite normal when you are using a poor version of LEACH. (And a wrong OS.)

Please read posts #1007 and #1009 here ...
https://www.linuxquestions.org/quest...68/page68.html

-
Hello,sir.

It seems that ns-2.34 could not be installed on ubuntu-10.04-i386 now.
According to your suggestion, i have first installed ubuntu-10.04-i386. But i could not install ns-allinone-2.34 on the OS, because some necessary pkgs now could not be found, such as build-essential、tcl8.4-dev、tk8.4-dev. I have tried to add more sources and use 'sudo get-apt update', but useless. i think maybe the OS is too old!

Can you recommend me some other OS(ubuntu/centos) and corresponding ns for leach.

Many thanks!

Last edited by likeyu; 04-16-2018 at 08:00 AM.
 
Old 04-16-2018, 08:10 AM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,483

Rep: Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633
Re #14.

Ubuntu 10.04 :
You will have to replace the text in /etc/apt/sources.list with:
Code:
deb http://old-releases.ubuntu.com/ubuntu/ lucid main restricted
deb http://old-releases.ubuntu.com/ubuntu/ lucid multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ lucid-updates main restricted
deb http://old-releases.ubuntu.com/ubuntu/ lucid-updates multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ lucid-backports main restricted
deb http://old-releases.ubuntu.com/ubuntu/ lucid-backports multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ lucid-security main restricted
deb http://old-releases.ubuntu.com/ubuntu/ lucid-security multiverse universe
Then you can run ...
Code:
$ sudo apt-get update
$ sudo apt-get install g++ autoconf libtool libxmu-dev xgraph
Please do not install tcl8.4-dev, tk8.4-dev.
``build-essential´´ provides g++, autoconf : build-essential isn't required.

-

Last edited by knudfl; 04-16-2018 at 11:20 AM.
 
  


Reply

Tags
leach, ns2


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Running leach protocol on ns2 !! errors !! shanky Linux - Networking 6 07-08-2013 05:18 AM
Leach Protocol for ns2.34 pushpita Linux - Software 36 07-08-2013 05:06 AM
LEACH protocol in ns2 swtjeeva Linux - Software 3 09-04-2012 01:53 PM
Developing LEACH protocol using ns2.34 prajwal.parihar Linux - Newbie 4 04-16-2012 10:22 AM
LEACH protocol installation on NS2.27 Scofield Linux - General 255 03-08-2012 06:19 PM

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

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