LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 12-02-2012, 09:00 PM   #1
vuichoigiaitri
LQ Newbie
 
Registered: Aug 2012
Posts: 15

Rep: Reputation: Disabled
HELP ME: Error while running tcl scrip for ZRP in NS2.33 ubuntu 10.04


thuannk@thuannk-desktop:~/NS$ ns zrp_9.tcl
num_nodes is set 100

(_o14 cmd line 1)
invoked from within
"_o14 cmd addr"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o14" line 2)
(SplitObject unknown line 2)
invoked from within
"_o14 addr"
("eval" body line 1)
invoked from within
"eval $node addr $args"
("default" arm line 2)
invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
(procedure "_o3" line 14)
(Simulator create-wireless-node line 14)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns node"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $val(nn)} {incr i} {
set n_($i) [$ns node]
#$n_($i) random-motion 0
$ns initial_node_pos $n_($i) 20
}"
(file "zrp_9.tcl" line 98)
thuannk@thuannk-desktop:~/NS$

attached files: zrp_9
Attached Files
File Type: txt zrp_9.txt (4.6 KB, 29 views)

Last edited by vuichoigiaitri; 12-02-2012 at 09:10 PM.
 
Old 12-02-2012, 10:11 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,178

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Please edit line 67 in zrp_9.tcl to : exec nam -r 5m zrp_9 &
Code:
$ ns-zrp zrp_9.tcl                                                                                                                 
num_nodes is set 100                                                                      
INITIALIZE THE LIST xListHead                                                             
using backward compatible Agent/CBR; use Application/Traffic/CBR instead                  
                  
Start of simulation..                                                                     
SORTING LISTS ...DONE!                                                                    
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_                                    
highestAntennaZ_ = 1.5,  distCST_ = 550.0
... And nam opens OK.
( Created files : zrp_9.nam (27.2 MB), zrp_9.tr (79.4 MB) ).

Your errors : Looks like a corrupt binary 'ns'. Not all "zrp" was compiled ?
Suggest : Install the Ubuntu package zrp-ns-2.33-ubu1010_i386.deb
https://docs.google.com/open?id=0B7S...kxHY3dQQlR4bjg
Provides : /usr/local/bin/ns-zrp


New "zrp.tcl" examples : zrp-Demo1-1.tcl, zrp-Demo2-1.tcl
#10 (1) http://www.linuxquestions.org/questi...4175437365/#10
Demo2 https://docs.google.com/open?id=0B7S...E9PZW1LQTBSNWs

.

Last edited by knudfl; 12-02-2012 at 10:40 PM.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error when running make for ns2.30 in Ubuntu 9.10 Labuschagne Linux - Software 32 03-08-2014 01:07 PM
Help me NS2 ZRP patch helok Programming 0 10-18-2012 01:12 AM
How to install zrp in ns2.33? khinmyo Linux - Software 3 09-12-2012 05:56 AM
NS2.33+ mobiwan : error "Segmentation Defaul" when running a tcl script yotta15 Linux - Newbie 1 06-29-2012 04:09 AM
errors in zrp tcl program of ns2.34 in ubuntu 10.10 prashantshintre Programming 1 10-04-2011 07:30 AM


All times are GMT -5. The time now is 02:27 AM.

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