LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-12-2012, 12:56 AM   #1
khinmyo
Member
 
Registered: Aug 2012
Posts: 37

Rep: Reputation: Disabled
How to install zrp in ns2.33?


Hi sir,

When I patch PatchZRP.patch, I encounter as follows,
khinmyo@ubuntu:~/ns-allinone-2.33/ns-2.33$ patch -p1 < ./zrp/PatchZRP.patch
patching file ns-2.33/common/packet.h
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
Hunk #1 FAILED at 53.
Hunk #2 FAILED at 259.
2 out of 2 hunks FAILED -- saving rejects to file ns-2.33/Makefile.rej
patching file ns-2.33/tcl/lib/ns-agent.tcl
Hunk #1 FAILED at 192.
1 out of 1 hunk FAILED -- saving rejects to file ns-2.33/tcl/lib/ns-agent.tcl.rej
patching file ns-2.33/tcl/lib/ns-default.tcl
Hunk #1 FAILED at 1337.
1 out of 1 hunk FAILED -- saving rejects to file ns-2.33/tcl/lib/ns-default.tcl.rej
patching file ns-2.33/tcl/lib/ns-lib.tcl
Hunk #1 FAILED at 621.
Hunk #2 FAILED at 791.
2 out of 2 hunks FAILED -- saving rejects to file ns-2.33/tcl/lib/ns-lib.tcl.rej
patching file ns-2.33/tcl/lib/ns-packet.tcl
Hunk #1 FAILED at 167.
1 out of 1 hunk FAILED -- saving rejects to file ns-2.33/tcl/lib/ns-packet.tcl.rej
patching file ns-2.33/trace/cmu-trace.cc
Hunk #1 FAILED at 54.
Hunk #2 FAILED at 464.
Hunk #3 FAILED at 1218.
3 out of 3 hunks FAILED -- saving rejects to file ns-2.33/trace/cmu-trace.cc.rej
patching file ns-2.33/trace/cmu-trace.h
Hunk #1 FAILED at 149.
1 out of 1 hunk FAILED -- saving rejects to file ns-2.33/trace/cmu-trace.h.rej
khinmyo@ubuntu:~/ns-allinone-2.33/ns-2.33$

So, please help me what I should do!!!
 
Old 09-12-2012, 02:54 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Please read the instructions ..
http://magnet.daiict.ac.in/magnet_me...imulation.html
3.2 § 1 : First put following files into NS-2 home's parent directory.
That's "ns-allinone-2.33/". And then run your patch command there :
patch -p1 < PatchZRP.patch

I.e. not the location that you are using :
"khinmyo@ubuntu:~/ns-allinone-2.33/ns-2.33$"

And please read
http://www.linuxquestions.org/questi...34-a-905025/#6
→ post # 6.
→ and for the examples : Post #33. And example-zrp.tcl.txt: post #13.


Good luck !

.

Last edited by knudfl; 09-12-2012 at 03:33 AM.
 
Old 09-12-2012, 06:03 AM   #3
khinmyo
Member
 
Registered: Aug 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
Hi sir,
I do the following steps....

Firstly, I download zrp files according to your post #6.
I put these files under home/ns-allinone2.33
And cd ns-allinone-2.33
patch -p1 < PatchZRP.patch
touch ns-2.33/common/packet.h
touch ns-2.33/trace/cmu-trace.h
tar xvf ns-allinone-2.33_ZRP.tar.gz
cd ns-allinone-2.33/ns-2.33
make -k

but i found these errors

make[1]: Leaving directory `/home/khinmyo/ns-allinone-2.33/ns-2.33/indep-utils/cmu-scen-gen/setdest'
make[1]: Entering directory `/home/khinmyo/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/khinmyo/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/dec'
make[1]: Entering directory `/home/khinmyo/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/khinmyo/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/epa'
make[1]: Entering directory `/home/khinmyo/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/khinmyo/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/nlanr'
make[1]: Entering directory `/home/khinmyo/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/khinmyo/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/ucb'
make: Target `all' not remade because of errors.
khinmyo@ubuntu:~/ns-allinone-2.33/ns-2.33$


So,please help me.
Thank you for your helping!!!
 
Old 09-12-2012, 06:56 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 3

"make[1]: Nothing to be done for `all'."
.. means that it all has been built. ( You did that with ./install.)
And : 'make clean' do not access "ns-2.33/indep-utils/"
So you already have all the binaries in the 'indep-utils' applications.
( Which you may never use.)

Usually the line "Target `all' not remade because of errors" will not appear.
Because there are no real errors.

.
 
  


Reply

Tags
ns2, zrp


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
How to install ZRP (Zone routing protocol) patch in ns-2.34 hassan329 Ubuntu 225 03-24-2018 07:58 AM
How to install ZRP (Zone routing protocol) patch in ns-2.35 dmaa Linux - Software 42 01-09-2016 06:19 PM
want to install ns2.29.3 along with mannasim patch for ns2.29 jeevanpinto Linux - Software 4 10-02-2013 01:09 AM
errors in zrp tcl program of ns2.34 in ubuntu 10.10 prashantshintre Programming 1 10-04-2011 08:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration