LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   not able to run tcl for mobiwan (https://www.linuxquestions.org/questions/linux-newbie-8/not-able-to-run-tcl-for-mobiwan-842269/)

manjunath11 11-04-2010 03:05 AM

not able to run tcl for mobiwan
 
i have installed ns 2.33 and added the patch mobiwan-1.patch on ubuntu 10.04, when i tried to run some simple script for mobile ipv6, i got the following. please anybody help me.
Code:

manju@manju-desktop:~/Desktop$ ns simple_mobileipv6.tcl
couldn't read file "BASEDIR/ns-allinone-2.26/ns-2.26/tcl/lib/proc-mipv6-config.tcl": no such file or directory
    while executing
"source.orig BASEDIR/ns-allinone-2.26/ns-2.26/tcl/lib/proc-mipv6-config.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 BASEDIR/ns-allinone-2.26/ns-2.26/tcl/lib/proc-mipv6-config.tcl"
    (procedure "main" line 6)
    invoked from within
"main"
    (file "simple_mobileipv6.tcl" line 161)


knudfl 11-04-2010 03:52 AM

Quote:

couldn't read file
"BASEDIR/ns-allinone-2.26/ns-2.26/tcl/lib/proc-mipv6-config.tcl":
no such file or directory
When you don't have ns-allinone-2.26/ns-2.26/tcl/lib,
then you will not be able to find 'proc-mipv6-config.tcl' there.

It may origin from some 2.26 text in your "simple_mobileipv6.tcl".


? Is it this patch ? : ns-233-mobiwan-1.patch
http://www.nicta.com.au/__data/asset...obiwan-1.patch
..

manjunath11 11-04-2010 12:52 PM

yes, it is the same ns-233-mobiwan-1.patch

knudfl 11-04-2010 01:06 PM

Received by email, from @manjunath11 :
I have installed ns.2.33 on ubuntu 10.04 and added the patch mobiwan-1,
I am getting error when i try run simple tcl , i think its because of
the patch mobiwan, please help me.
Code:

manju@manju-desktop:~/Desktop$ ns 1.tcl
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"
    (file "1.tcl" line 28)

What is 1.tcl ? Please attach the file, or provide a link to its location.
..

manjunath11 11-04-2010 01:34 PM

this is the link for 1.tcl
https://docs.google.com/document/d/1...o1o/edit?hl=en

knudfl 11-04-2010 01:49 PM

2 Attachment(s)
OK, got the file from your "Shared Google Docs" link.

[knudfl@localhost ~]$ ns 1.tcl.txt
[knudfl@localhost ~]$ Cannot connect to existing nam instance. Starting a new one...

I.e. no errors in a standard ns-2.34 / ns-2.33.
..

manjunath11 11-05-2010 03:18 AM

Hi sir I have executed the code but I get the same errors
Code:


manju@manju-desktop:~/Desktop$ ns 1.tcl.txt
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 $n1 $tcp"
    (file "1.tcl.txt" line 35)
manju@manju-desktop:~/Desktop$ ns 4.tcl
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 $n1 $tcp"
    (file "4.tcl" line 35)

Please check the errors.. Actually I added mobiwan1 patch to the NS2.33. May be the errors are due to the patch.
Can you send a simple tcl script for mipv6 to run on NS2.33 consisting of Mobiwan1


All times are GMT -5. The time now is 09:33 PM.