Hello
I have simulated zrp protocol for manet scenario.Now I need implement the same in vanet scenario. Please give me the zrp patch for Vanet scenario. Please help me, i need this for my project.(For ns 2.33) |
plz reply me soon ....
|
i have got this error during install zrp patch on ubuntu 12.04
################# make[1]: Leaving directory `/home/imran/dir2/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/ucb' make: Target `all' not remade because of errors. for d in /usr/local/man/man1; do \ if [ ! -d $d ]; then \ mkdir -p $d ;\ fi;\ done mkdir: cannot create directory `/usr/local/man/man1': Permission denied make: *** [dirs] Error 1 ########### plz suggest me any solution to recover it |
Post #213, @mran01775 : Welcome to LQ.
You are showing some incomplete sequence. Commands etc. are missing. And you (may) have a surplus 'make' command. HOWTO ZRP + ns-2.33 , build example, the 32bits Ubuntu 12.04 : a) $ tar xvf ns-allinone-2.33.tar.gz b) $ cd ns-allinone-2.33/ c) $ patch -p0 < zrp-diff2014_ns233.patch https://drive.google.com/file/d/0B7S...it?usp=sharing d) $ patch -p0 < otcl_ns234_gcc-4.4.patch https://drive.google.com/file/d/0B7S...ew?usp=sharing e) $ export CC=gcc-4.4 CXX=g++-4.4 && ./install f) $ cd ns-2.33/ g) $ cp ns ns-zrp h) $ sudo cp ns-zrp /usr/local/bin/ ..... Then you can do $ ns-zrp zrp-Demo1-1.tcl ... etc. etc. from zrp-examples-2012.tar.bz2 https://drive.google.com/file/d/0B7S...it?usp=sharing ------------------------------------------- Ns-2.35 + zrp : zrp-ns235.patch https://drive.google.com/file/d/0B7S...ew?usp=sharing (Old) ZRP info http://www.linuxquestions.org/questions/tags/zrp/ - |
firstly, i install ns2.33 then i run patchmyzrp.sh .it show the following command
"""" make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/root/dir2/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/epa' make[1]: Entering directory `/root/dir2/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/nlanr' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/root/dir2/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/nlanr' make[1]: Entering directory `/root/dir2/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/ucb' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/root/dir2/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/ucb' for d in /usr/local/man/man1; do \ if [ ! -d $d ]; then \ mkdir -p $d ;\ fi;\ done /usr/bin/install -c -m 755 ns /usr/local/bin /usr/bin/install -c -m 644 ns.1 /usr/local/man/man1 ===================================== ZRP Patching ended @ 13:31:48 """"""""" i'm confuse my patch install or not secondly, then i again install ns2 following this command : sudo ./install then it show this error """""""" trace/cmu-trace.o: In function `hdr_zrp::access(Packet const*)': cmu-trace.cc:(.text._ZN7hdr_zrp6accessEPK6Packet[hdr_zrp::access(Packet const*)]+0x7): undefined reference to `hdr_zrp::offset_' collect2: ld returned 1 exit status make: *** [ns] Error 1 Ns make failed! """""""""""""" give me complete solution in details....plz |
Re #215.
Quote:
You are not supposed to do 'make install'. No need for 'ns'. Use 'ns-zrp' instead. * Read post #214 : f) $ cd ns-2.33/ g) $ cp ns ns-zrp h) $ sudo cp ns-zrp /usr/local/bin/ Then you can do $ ns-zrp zrp-Demo1-1.tcl - |
i am using #post 214 process to install zrp patch but i have found some problem when i am trying to install patch. please help me with complete solution
root@ubuntu:~/dir1/ns-allinone-2.33# patch -p0 < zrp-diff2014_ns233.patch patching file ns-2.33/common/packet.h Reversed (or previously applied) patch detected! Assume -R? [n] -R Apply anyway? [n] y Hunk #1 FAILED at 67. Hunk #2 FAILED at 180. Hunk #3 FAILED at 303. 3 out of 3 hunks FAILED -- saving rejects to file ns-2.33/common/packet.h.rej patching file ns-2.33/Makefile.in Reversed (or previously applied) patch detected! Assume -R? [n] |
Re #217.
Quote:
May be you should start from scratch ... And : /root/ is not supposed to be used for anything. Running as root is unsafe. 'root' is for administrative tasks only. Please log in as unprivileged user, and use /home/<name>/<dir>/ ... to unpack a new ns-allinone-2.33.tar.gz - |
how to install zrp patch on ns2.33
sir, i followed your instructions from post #5, and i install ns2.33 successfully.
but i could not install the patch. the second file you said to download and put in to the home directory is not there. i really need your help sir. thanks |
Post #219, @Darddy.
A patch is applied, not installed. The zrp patch must be present in ns-allinone-2.3x. ... Or you can use the absolute path like : $ patch -p0 < /home/name/Downloads/*.patch. Build example https://groups.google.com/forum/?fro...8/x3YN7pG561MJ - |
Quote:
invalid command name "Agent/ZRP" while executing "Agent/ZRP set radius_ 2 " (file "zrp.tcl" line 17) Also I've tried patching it in ns-2.33 using the method suggested in: http://magnet.daiict.ac.in/magnet_me...imulation.html But I'm getting the same error. Please help me out with this as soon as possible! |
Re #221, @megha_18.
Please read the build and run example here .... https://groups.google.com/forum/?fro...8/x3YN7pG561MJ I.e. please use this command for the simulation : $ ns235-zrp zrp-Demo1-1.tcl Quote:
Hence the copy /usr/local/bin/ns235-zrp ... to be absolutely sure you are using the "ns" patched with ZRP. - |
When I try to compile my zrp.tcl program the following error popped.
invalid command name "Agent/ZRP" while executing "Agent/ZRP set radius_ 2 " My computer OS specification is: x86_64 ID=LinuxMint Release=17.1 |
Ref. #223 and https://www.linuxquestions.org/quest...post5822710/#2
Simulations : Not "compile", but run with 'ns-zrp' ! The simulation command is missing in post #223. Big mistake. Please do : $ ns-zrp my-zrp.tcl - |
Sorry for the mistake. But, I do run the file with the command "ns-zrp myzrp.tcl".
|
All times are GMT -5. The time now is 01:43 AM. |