LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-04-2010, 03:05 AM   #1
manjunath11
LQ Newbie
 
Registered: Nov 2010
Posts: 18

Rep: Reputation: 0
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)

Last edited by manjunath11; 11-07-2010 at 10:58 AM.
 
Old 11-04-2010, 03:52 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,953

Rep: Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603
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
..

Last edited by knudfl; 11-04-2010 at 03:55 AM.
 
Old 11-04-2010, 12:52 PM   #3
manjunath11
LQ Newbie
 
Registered: Nov 2010
Posts: 18

Original Poster
Rep: Reputation: 0
yes, it is the same ns-233-mobiwan-1.patch
 
Old 11-04-2010, 01:06 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,953

Rep: Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603
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.
..
 
Old 11-04-2010, 01:34 PM   #5
manjunath11
LQ Newbie
 
Registered: Nov 2010
Posts: 18

Original Poster
Rep: Reputation: 0
this is the link for 1.tcl
https://docs.google.com/document/d/1...o1o/edit?hl=en
 
Old 11-04-2010, 01:49 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,953

Rep: Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603
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.
..
Attached Images
File Type: jpg screen29968.jpg (16.8 KB, 12 views)
Attached Files
File Type: txt 1.tcl.txt (1.9 KB, 31 views)
 
Old 11-05-2010, 03:18 AM   #7
manjunath11
LQ Newbie
 
Registered: Nov 2010
Posts: 18

Original Poster
Rep: Reputation: 0
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

Last edited by manjunath11; 11-07-2010 at 01:10 AM.
 
  


Reply

Tags
mobiwan, ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot find Tcl dll ( Perl's Tcl bridge ) Xyem Linux - Software 2 08-08-2006 09:45 AM
tcl/tk: vinaysg Programming 8 02-17-2006 06:52 AM
/var/run/[XXX].pid - Tcl pid code liguorir Linux - Software 1 05-20-2004 10:32 PM
Tcl help anyone? CanadianPenguin Programming 4 12-30-2003 05:42 PM
Tcl/tk ccarrieta28 Linux - Software 0 09-10-2003 02:49 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration