Error in running leach_test in NS-2.34
Hi all,
I am trying to simulate leach on NS2 but I've had problems with running the leach_test. I've followed all steps from installing NS2 up to installing the LEACH patch (used the latest one from exidus). Here's the error message in the leach.err I found. Code:
couldn't read file "/mit/uAMPS/uamps.tcl": no such file or directory |
Leach+pegasis (@exidus) http://www.linuxquestions.org/questions/tags/pegasis/
The latest patch package is exidus-pegasis-leach-ns234-patch.2.tar.gz https://drive.google.com/file/d/0B7S...it?usp=sharing A build example : http://www.linuxquestions.org/questi...-a-4175504301/ ( "leach+pegasis-ns234-files-2.tar.gz" is identical with exidus-pegasis-leach-ns234-patch.2.tar.gz , it's just a different naming.) ! Important → → Using : http://www.linuxquestions.org/questi...-a-4175505299/ - |
I've already followed every step, knudfl, the last issue turns out to be a problem with the directory, but now the leach.err contains this message. I'm also using the latest patch from exidus, Ubuntu 12.04, and g++-4.4.
Code:
invalid command name "Resource/Energy" |
← #3 .
Quote:
Solution : Delete all ns2 related PATH entries you may have in .bashrc, and do : $ cd ns-allinone-2.34/ns-2.34/ && sudo make install ( 'make install' will copy 'ns' to /usr/local/bin/ ). ? Are you sure you are doing export RCA_LIBRARY=/home/tsabran/ns-allinone-2.34/ns-2.34/mit/rca && export uAMPS_LIBRARY=/home/tsabran/ns-allinone-2.34/ns-2.34/mit/uAMPS && ./test Other possibility : You have a failed build. - |
I've followed your advice the leach_test now is running but now the leach.out is not as expected. I've also read some threads that mentions similar problems but have not exactly solved the problem I have now.
Below is content of leach.out Code:
Creating sensor nodes... - uAMPS.tcl |
Quote:
|
All times are GMT -5. The time now is 12:37 AM. |