Hi,

I'm trying to run LEACH on NS2. I've installed NS2.27 and the mit
package over it [on windows, using cygwin]. The installation is all
fine, but when i run the test scripts so as to run/test LEACH, all of
them fail. For instance, when i run:

./ns tcl/ex/wireless.tcl -sc mit/uAMPS/sims/100nodescen -rp leach -x
1000 -y 1000 -nn 101 -stop 100 -eq_energy 1 -init_energy 2 -filename
leach_file -dirname leach_dir -num_clusters 5 -bs_x 0 -bs_y 0


This gives me the following errors:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
couldn't open "leach_dir/conditions.txt": no such file or directory
    while executing
"open "$opt(dirname)/conditions.txt" w"
    invoked from within
"set outf [open "$opt(dirname)/conditions.txt" w]"
    (file "tcl/mobility/leach.tcl" line 14)
    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)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Can anyone please help me out on this? What am I doing wrong?

Thanks so much!!

Regards.

Reply via email to