AZHAR MOHD ARIS schrieb:
> The good news is i succesfully installed NS2 in my Ubuntu Linux OS.
> The bad news is :D i found an error when execute the command ns
> singlehop.tcl
>
> [EMAIL PROTECTED] :/usr/local/ns2/projek$ ns singlehop.tcl
>
> num_nodes is set 3
> invalid command name "Propagation/SimpleDistance"
>     while executing
> "Propagation/SimpleDistance create _o24 "
>     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 $propType_"
>     (procedure "_o3" line 29)
>     (Simulator node-config line 29)
>     invoked from within
> "$ns_ node-config -mobileIP OFF \
>                   -adhocRouting NOAH \
>                   -llType LL \
>                   -macType Mac/802_11 \
>        ..."
>     (file "singlehop.tcl" line 22)
>   
For me its seems that you implemented a new propagation model but forgot 
to make it available on the tcl layer.
Check the following:
- Makefile compiles your new propagation model
- the final binary contains the new model
- the new model is registered with tcl using the right name

Daniel.

-- 
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln
Web:     www.rt-solutions.de

rt-solutions.de
networks you can trust.

Reply via email to