LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-10-2013, 04:46 PM   #1
minhtri282
LQ Newbie
 
Registered: Jul 2013
Posts: 1

Rep: Reputation: Disabled
NS2: Help me: Leach on Ubuntu 10.04


When I used code to make file :
Quote:
ns ns-2.34/tcl/ex/wireless.tcl -rp leach -x 1000 -y 1000 -nn 70 -stop 360 -eq_energy 1 -init_energy 2 -filename leach_file -dirname leach_dir -topo ns-2.34/mit/uAMPS/sims/100nodes.txt -num_clusters 5 -bs_x 50 -bs_y 50 leach_dir/leach_file.err leach_dir/leach_file.out &
It's error with:
Quote:
ns: _o1226 advertiseClusterHead: can't read "opt(max_dist)": no such element in array
while executing
"$self send $mac_dst $link_dst $ADV_CH $msg $datasize $opt(max_dist) $code_"
(procedure "_o1226" line 15)
(Application/LEACH advertiseClusterHead line 15)
invoked from within
"_o1226 advertiseClusterHead"
Help me now! The more specific is better.

Last edited by minhtri282; 07-10-2013 at 05:01 PM.
 
Old 07-12-2013, 08:51 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by minhtri282 View Post
When I used code to make file, It's error with:
Help me now! The more specific is better.
We volunteer our time here...telling us to help you NOW, is fairly rude.

The error is pretty clear: you're not providing a needed argument in your test script. So, provide it. And putting the error into Google also yields a solution:
http://mailman.isi.edu/pipermail/ns-...ay/068103.html
 
1 members found this post helpful.
  


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
problem with running leach protocol in ns2.34 leach.er Mohamed69 Linux - Software 14 04-16-2018 07:10 AM
how to install leach patch in ns2.34 in ubuntu 9.10 anjon.sunny Linux - Newbie 9 04-30-2014 04:05 AM
leach.out total energy increase leach ns2.34 linuxUser123linux Linux - Software 1 07-13-2013 04:54 AM
Please guide me hw to implement LEACH protocol in Ns2.34 havn installed Ubuntu 12.10 Pallavi13 Linux - Software 2 05-30-2013 04:34 AM

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

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