# 29
Quote:
a) cd ns-allinone-2.33/ && patch -p1 < PatchZRP.patch Your location is ns-allinone-2.33/ ; then we "go outside" with ../ ! c) cd ../ && tar xvf ns-allinone-2.33_ZRP.tar.gz See post # 27 : "did you untar ns-allinone-2.33_ZRP.tar.gz in the folder with ns-allinone-2.33?" The folder that is containing ns-allinone-2.33/. Not inside ns-allinone-2.33/! . |
Quote:
thank you so much for your help sir. can you explain me, what is touch example.scen and example.traffic for? when we create a new file, is the example.scen and example.traffic should be the different name? thank you |
# 32
example.scen and example.traffic : You can use the files from the old zrp.tar.gz http://sites.google.com/site/nsnamzrp/ > https://3b137281-a-62cb3a1a-s-sites....zrp/zrp.tar.gz >>> zrp.tar.gz > zrp/example/ example.scen example.traffic The touch command creates empty files. I used those until I found the real files : EDIT : See post # 25. . |
Quote:
set val(trfile) "example.traffic" what is val(cp) and val(trfile) for sir? please explain to me actually i dont know anything about that. |
# 34
It seems that both are used for file references like IX.2. here .. http://www.isi.edu/nsnam/ns/tutorial/nsscript5.html set val(cp) "../mobility/scene/cbr-3-test" Some of the commands in ns2 tcl files are basic tcl commands. And some commands / words are special ns2 definitions. ( I am not a coder, and do not write tcl files.) . |
Quote:
Thank you so much for your help Sir i can start doing my tcl file right now |
install zrp on windows xp error
pls help -- STEP-1 ====== First put following files into NS-2 home's parent directory. 1) ns-allinone-2.33_zrp.tar.gz 2) zrp4NS2_33.patch 3) patchZRP.sh (THIS SHELL-SCRIPT FILE - This script file should be run from NS-2 home' parent directory) STEP-2 ====== Run patchZRP.sh from shell. ... but error such as: Admin@TruongVu ~ $ sh patchZRP.sh patchZRP.sh: 1: Syntax error: newline unexpected Admin@TruongVu ~ $ |
Post #37, @ truongvutgg : Welcome to LQ.
Windows XP ? Would that be Cygwin ? ? Syntax error : Probably a shell issue ? Not a genuine bash / Linux shell ? Anyway it doesn't matter so far concerns the "patchZRP.sh" script. The script is no good. Please read post # 6. . |
Quote:
how to touch ns-2.33/common/packet.h && touch ns-2.33/trace/cmu-trace.h I'm unable to do this step. Is is to do manually? If so, how to do ? Please guide me in detail. It is important for me!!! Please help me ,sir |
# 39
How to use the 'touch' command : Type touch $ touch ns-2.33/common/packet.h && touch ns-2.33/trace/cmu-trace.h . |
hi sir.
Now I'm ok to patch ZRP in ns2.33 successfully! But I can't run .tcl file. I downlaod example-zrp.tcl form your post #13 and put this file to ns-allinoe-2.33>> ns-2.33>>tcl>>ex. And then , I do as follow, khinmyo@ubuntu:~/ns-allinone-2.33/ns-2.33/tcl/ex$ ns example-zrp.tcl invalid command name "Agent/ZRP" while executing "Agent/ZRP set radius_ 2 " (file "example-zrp.tcl" line 68) khinmyo@ubuntu:~/ns-allinone-2.33/ns-2.33/tcl/ex$ [COLOR="Red"][/COLOR So, how can I solve this problem.Please Help Me,Sir! Your instructions are very useful to me! |
# 41
Looks like no ZRP was installed. Probably reread the LQ zrp threads. Also suggest : Install the package zrp-ns-2.33-ubu1010_i386.deb https://docs.google.com/open?id=0B7S...kxHY3dQQlR4bjg .. And do : $ ns-zrp example-zrp.tcl No errors. The files pktdemo.nam pktdemo.tr are created. . |
Yeah, sir
I already do as your instruciton. But I have this error again! Please help me,sir! khinmyo@ubuntu:~/ns-allinone-2.33/ns-2.33/tcl/ex$ ns-zrp example-zrp.tcl num_nodes is set 20 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LIST xListHead Loading connection pattern... couldn't read file "example.scen": no such file or directory while executing "source.orig example.scen" ("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 $val(cp)" (file "example-zrp.tcl" line 198) khinmyo@ubuntu:~/ns-allinone-2.33/ns-2.33/tcl/ex$ |
# 43
Quote:
Files from the old (year 2000) zrp.tar.gz > zrp/example/* can be used .. http://sites.google.com/site/nsnamzrp/ > https://3b137281-a-62cb3a1a-s-sites....zrp/zrp.tar.gz . |
i has try to do zrp patch in ns-2.33 as per your step it will show me this
is this completely install??? make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/vishal/ns-allinone-2.33/ns-2.33/indep-utils/cmu-scen-gen/setdest' make[1]: Entering directory `/home/vishal/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/dec' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/vishal/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/dec' make[1]: Entering directory `/home/vishal/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/epa' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/vishal/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/epa' make[1]: Entering directory `/home/vishal/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/nlanr' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/vishal/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/nlanr' make[1]: Entering directory `/home/vishal/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/ucb' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/vishal/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/ucb' make: Target `all' not remade because of errors. then i had try to run your program then it will show me below error invalid command name "Agent/ZRP" while executing "Agent/ZRP set radius_ 2 " (file "example-zrp.tcl.txt" line 68) tell me what to do |
All times are GMT -5. The time now is 02:45 PM. |