Quote:
Originally Posted by knudfl
Welcome to LQ.
'make install' will copy 'ns' to /usr/local/bin/
Unpack nam-1.14.<arch>.tar.gz, And : sudo cp nam /usr/local/bin/
.
|
i followed these steps: first the ns is run correctly
,but nam is not. i found this error:
dina@ubuntu:~/Aqua-sim/ns-2.30/underwatersensor/uw_tcl$ nam vbf_example_5.tcl
Failed to start animator:
class Animator: constructor failed: unmatched open brace in list
unmatched open brace in list
while executing
"foreach item $traceevent {
if { $next == 1 } {
return $item
}
if { $item == $tag } {
set next 1
}
}"
(procedure "get_trace_item" line 3)
invoked from within
"get_trace_item "-t" $line"
(procedure "_o3" line 15)
(Animator infer-network-model line 15)
invoked from within
"$self infer-network-model $tracefile"
(procedure "_o3" line 84)
(Animator init line 84)
invoked from within
"_o3 init vbf_example_5.tcl {}"
(Class create line 1)
invoked from within
"Animator create _o3 vbf_example_5.tcl {}"
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new $ANIMATOR_CLASS_ $tracefile [join $args]"
dina@ubuntu:~/Aqua-sim/ns-2.30/underwatersensor/uw_tcl$
i dont know where is the problem????