LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to run LEACH on ns2.34. (https://www.linuxquestions.org/questions/linux-software-2/how-to-run-leach-on-ns2-34-a-938750/)

auvikuet 04-08-2012 10:18 AM

How to run LEACH on ns2.34.
 
Hi
I already installed ns2.34 on ubuntu10.10. Now I am trying to run LEACH. I followed all type of steps given in various threads. When I complete the steps and run ./test then wireless-demo-csci694.tcl works well and i find the output but for leach_test the leach.err file shows the following error and the output file shows nothing.
-------------------------------------------
At first it showed the following error:
can't read "env(RCA_LIBRARY)": no such variable
while executing
"source $env(RCA_LIBRARY)/ns-ranode.tcl"
(file "mit/uAMPS/sims/uamps.tcl" line 9)
------------------------------------------
Then i changed all env(RCA_LIBRARY) and env(UAMPS_LIBRARY) by the path such as mit/rca and mit/uamps.
------------------------------------------
Then it showed the following error:
"Resource/Energy instproc setParams {args} {
$self instvar energyLevel_ alarmLevel_
set energyLevel_ [lindex $args 0]
set alarmLevel_ [lind..."
(file "/home/kowsar/ns-allinone-2.34/ns-2.34/mit/rca/resources/ns-energy-resource.tcl" line 11)
-------------------------------------------------------------------
can anyone help me to solve this problem?


All times are GMT -5. The time now is 12:37 AM.