LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mobiwan and ns-2.33 problems (https://www.linuxquestions.org/questions/linux-newbie-8/mobiwan-and-ns-2-33-problems-941119/)

simz 04-22-2012 08:37 AM

mobiwan and ns-2.33 problems
 
helo everyone, i am new to this forum. my problem is that i patched mobiwan with ns-2.33 by following the instructions from:


http://techsolns4u.blogspot.in/2011/...on-in-ns2.html

after that when i tried to run my tcl script i faced an error like this:

"programs]$ ns multicast.tcl
can't read "EnableHierRt_": no such variable
(Object set line 1)
invoked from within
"Simulator set EnableHierRt_"
(procedure "_o38" line 10)
(Node attach line 10)
invoked from within
"$node attach $mctrl_"
(procedure "_o228" line 4)
(DM init line 4)
invoked from within
"_o228 init _o3 _o38"
(Class create line 1)
invoked from within
"DM create _o228 _o3 _o38"
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 $mproto $self $node"
(procedure "_o3" line 2)
(Simulator mrtproto-iifs line 2)
invoked from within
"$self mrtproto-iifs $mproto $Node_($n) """
(procedure "_o3" line 23)
(Simulator mrtproto line 23)
invoked from within
"$ns mrtproto $mproto"
invoked from within
"set mrthandle [$ns mrtproto $mproto]"
(file "multicast.tcl" line 50) "


even when i run any script for checking xgraph it generates the same error as :
"can't read "EnableHierRt_": no such variable"

please help me anybody . thank you in advance

simz 04-22-2012 12:40 PM

Mr. knudfl: please reply to my problem, i am still waiting. i reinstalled ns-2.33 on fedora-14 and when i run the tcl script i got an error :
"can't read "EnableHierRt_": no such variable
(Object set line 1)
invoked from within
"Simulator set EnableHierRt_"
(procedure "_o10" line 10)
(Node attach line 10)
invoked from within
"$node attach $agent"
(procedure "_o3" line 2)
(Simulator attach-agent line 2)
invoked from within
"$ns attach-agent $n0 $udp0"


please help me sir, i am waiting for your reply....

simz 04-25-2012 03:54 AM

i installed mobiwan on ns-2.33
now when i run the simple-mipv6.tcl script an error is generated as below:


"[root@riaz tcl_scripts]# ns-mobiwan simple-mipv6.tcl
num_nodes is set 5
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl (except for MobiWAN simulations)
INITIALIZE THE LIST xListHead

>-------------------- NS Addressing --------------------<
Domains (domain_num) : 2
Clusters (cluster_num) : 1 5
Nodes (nodes_num) : 1 1 3 1 1 1
>-------------------------------------------------------<

Segmentation fault (core dumped)
[root@riaz tcl_scripts]#
"
please help... thanks

knudfl 05-02-2012 09:11 AM

Welcome to LQ.

Which version of Fedora are you using ? ?

Quote:

ns-mobiwan simple-mipv6.tcl
You are not supposed to use a mobiwan patched 'ns' for the default tcl files.
That 'ns' is for mobiwan files mostly.

Please save a copy of an unpatched 'ns' as e.g. ns233-orig
to use for all other tcl files.

.


All times are GMT -5. The time now is 03:00 PM.