LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-28-2014, 11:26 AM   #1
shaftri
LQ Newbie
 
Registered: Mar 2014
Posts: 1

Rep: Reputation: Disabled
LEACH-C error in NS2.34


when i try to run LEACH-C script it shows this error:

shaftri@ubuntu:~/ns-allinone-2.34/ns-2.34/tcl/mobility$ ns leach-c.tcl
can't read "env(uAMPS_LIBRARY)": no such variable
while executing
"source $env(uAMPS_LIBRARY)/ns-leach.tcl"
(file "leach-c.tcl" line 7)

thank you .

Last edited by shaftri; 04-28-2014 at 11:28 AM.
 
Old 04-28-2014, 01:32 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

The files in `tcl/mobility/´ are configuration files,
movement files, traffic files :
Used by other files.tcl for simulation.

The file `tcl/mobility/leach-c.tcl´ is a text file, like all other *.tcl.
Please read the file to know that it isn't a simulation file.

Using "leach_c" : Edit line 5 in leach_test to : alg=leach_c
.. And run $ ./test


Leach info http://www.linuxquestions.org/questions/tags/leach/
Leach+Pegasis http://www.linuxquestions.org/questions/tags/pegasis/

-
 
  


Reply


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 08:10 AM
NS2: leach-c compilation error eng_mohamed_sc Linux - Software 4 04-08-2015 02:11 AM
NS2: LEACH Energy Error... Nimat Ullah Linux - Software 0 06-02-2013 11:44 PM
I got an error while running leach package in ns2.. help me to get out of this error. rkgowrishankar Linux - Software 1 02-07-2012 05:51 AM

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

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