Hello frineds
Can any one kindly tell me which version of ubuntu, which version of ns2
and which version of gcc compiler are the correct and best ones to install
leach.
Right now i am having ubuntu 12.04, ns-23.4 and gcc version when i type gcc
-v is 4.4.7
and when i run ./test file i am getting the following errors in leach.err
file
invalid command name "Resource/Energy"
while executing
"Resource/Energy instproc setParams {args} {
$self instvar energyLevel_ alarmLevel_
set energyLevel_ [lindex $args 0]
set alarmLevel_ [lind..."
(file
"/home/manjula/ns-allinone-2.34/ns-2.34/mit/rca/resources/ns-energy-resource.tcl"
line 11)
invoked from within
"source.orig
/home/manjula/ns-allinone-2.34/ns-2.34/mit/rca/resources/ns-energy-resource.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
/home/manjula/ns-allinone-2.34/ns-2.34/mit/rca/resources/ns-energy-resource.tcl"
(file "/home/manjula/ns-allinone-2.34/ns-2.34/mit/uAMPS/sims/uamps.tcl"
line 30)
invoked from within
"source.orig
/home/manjula/ns-allinone-2.34/ns-2.34/mit/uAMPS/sims/uamps.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 /home/manjula/ns-allinone-2.34/ns-2.34/mit/uAMPS/sims/uamps.tcl"
(file "/home/manjula/ns-allinone-2.34/ns-2.34/tcl/mobility/leach.tcl"
line 18)
invoked from within
"source.orig /home/manjula/ns-allinone-2.34/ns-2.34/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 /home/manjula/ns-allinone-2.34/ns-2.34/tcl/mobility/$opt(rp).tcl"
(file "tcl/ex/wireless.tcl" line 187)
So the problem is with gcc version, then which version must i use? and how
to install this on ubuntu 12.04 and remove the existing gcc compiler
Awaiting for reply
Regards
Manjula
**R.Manjula
Faculty, Dept of ECE
BITM, Bellary
Karnataka.
Current Status:
Research Scholar
Dept of E&ECE
IIT Kharagpur
West Bengal
**