-   Linux - Software (
-   -   LEACH installation (

geethamit 10-17-2011 08:04 AM

LEACH installation
im not able to install leach into ns2.34(centos).
i am gettting following error:

[root@multicore09 ns-234-leach]# ./test
can't read "argc": no such variable
while executing
"for {set i 0} {$i < $argc} {incr i} {
set arg [lindex $arg $i]
if {[string range $arg 0 0] != "-"} continue

set name [string range $arg 1 end]
(procedure "getopt" line 5)
invoked from within
"getopt $argc $argv"
(file "wireless-demo-csci694.tcl" line 179)

Except #5 forum what are all the steps i have to do?
I need to use which OS and Compiler version both gcc ang g++.
please anyone help me to install leach

knudfl 10-17-2011 11:45 AM

1) You will have to edit your posts to use code tags. The above post,
and your posts in the other thread.
Write [/code] at code text end, and [code] at code start.
Or use the # button in the 'Advanced Editor' : Edit >> Go Advanced.

2) Don't know, what you are doing. There are no issues using CentOS 5 (6).
The procedure is the same as Fedora 13, here
Use "" and the new "cmu-trace.h".
The export command can be omitted :
The default compilers version 4.1.2 will do OK.


All times are GMT -5. The time now is 10:19 AM.