Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 12-02-2012, 09:00 PM   #1
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_ {
set ragent [$self create-dsdv-agent $node]
$self at 0.0 "$node start-dsr"
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)

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

Last edited by vuichoigiaitri; 12-02-2012 at 09:10 PM.
Old 12-02-2012, 10:11 PM   #2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,702

Rep: Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291
Please edit line 67 in zrp_9.tcl to : exec nam -r 5m zrp_9 &
$ 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!                                                            - Calc highestAntennaZ_ and distCST_                                    
highestAntennaZ_ = 1.5,  distCST_ = 550.0
... And nam opens OK.
( Created files : zrp_9.nam (27.2 MB), (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
Provides : /usr/local/bin/ns-zrp

New "zrp.tcl" examples : zrp-Demo1-1.tcl, zrp-Demo2-1.tcl
#10 (1)


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


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
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 > Forums > Linux Forums > Linux - Distributions > Ubuntu

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

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