LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-13-2011, 06:08 AM   #1
dmaa
LQ Newbie
 
Registered: Dec 2011
Posts: 15

Rep: Reputation: Disabled
How to install ZRP (Zone routing protocol) patch in ns-2.35


Hello everybody

Last edited by dmaa; 01-25-2012 at 10:20 AM.
 
Old 12-14-2011, 05:29 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The general suggestion is not to use Ubuntu 11.10 (or 11.04) for ns2.
If you must use Ubuntu, then version 10.04 will do.
The default OS for ns2 is CentOS 5.7
( All ns2 versions were created and tested on CentOS / RHEL.)

The ZRP patch is for ns-2.33 only. http://aplysit.com/downloadable/
But : You can have as many versions of ns2 as you want,
installed at the same time. Just do not add any of them to a PATH*.
No ns-2.33 or any other version ns-2.27.....2.34 can be installed on Ubuntu 11.10.

..

Last edited by knudfl; 12-15-2011 at 06:57 AM.
 
1 members found this post helpful.
Old 12-14-2011, 05:56 AM   #3
dmaa
LQ Newbie
 
Registered: Dec 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
okkkkkkkk

Last edited by dmaa; 01-25-2012 at 10:20 AM.
 
Old 12-14-2011, 09:06 AM   #4
dmaa
LQ Newbie
 
Registered: Dec 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
I have followed thr steps

Last edited by dmaa; 01-25-2012 at 10:21 AM.
 
Old 12-14-2011, 09:09 AM   #5
dmaa
LQ Newbie
 
Registered: Dec 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
okkkkkkk

Last edited by dmaa; 01-25-2012 at 10:21 AM.
 
Old 12-15-2011, 02:05 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
1) cd ns-allinone-2.33/ && export CC=gcc-4.3 CXX=g++-4.3 && ./install
2) cd ns-2.33/ && cp ns ns233 && exit
I.e. you may need a "non ZRP ns" for some files. (ns-orig = 'ns233'.)

3) sh patchmyZRP.sh http://aplysit.com/downloadable/
→ → http://aplysit.com/downloadable/patchmyZRP.sh
And http://aplysit.com/downloadable/ns-a....33_ZRP.tar.gz etc.
4) cd ns-allinone-2.33/ns-2.33/ && sudo make install
... Then the new ns (with ZRP) is copied to /usr/local/bin .
...

Last edited by knudfl; 12-15-2011 at 06:58 AM.
 
1 members found this post helpful.
Old 12-15-2011, 04:27 AM   #7
dmaa
LQ Newbie
 
Registered: Dec 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
---------

Last edited by dmaa; 01-25-2012 at 10:27 AM.
 
Old 12-15-2011, 06:47 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 7.
Quote:
g++-4.3: Command not found
sudo apt-get install g++-4.3
 
1 members found this post helpful.
Old 12-15-2011, 08:06 AM   #9
dmaa
LQ Newbie
 
Registered: Dec 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
Its gona cause me a headache

Last edited by dmaa; 01-25-2012 at 10:22 AM.
 
Old 12-15-2011, 09:02 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Be aware that the export command is temporary.

The command 'export CC=gcc-4.3 CXX=g++-4.3'
will reset to the default version ( 4.4 ), when you exit the terminal.


I got no errors when I made the ZRP build test
on Ubuntu 10.04, 32bits 6 hours ago. Ref. post #6.

.
 
1 members found this post helpful.
Old 12-15-2011, 09:17 AM   #11
dmaa
LQ Newbie
 
Registered: Dec 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
32bits as well

Last edited by dmaa; 01-25-2012 at 10:27 AM. Reason: l
 
Old 12-15-2011, 09:33 AM   #12
dmaa
LQ Newbie
 
Registered: Dec 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
This is all what I did after install

Last edited by dmaa; 01-25-2012 at 10:29 AM.
 
Old 12-15-2011, 01:38 PM   #13
dmaa
LQ Newbie
 
Registered: Dec 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
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
patching file ns-2.33/tcl/lib/ns-default.tcl
patching file ns-2.33/tcl/lib/ns-lib.tcl
patching file ns-2.33/tcl/lib/ns-packet.tcl

Last edited by dmaa; 01-25-2012 at 10:24 AM.
 
Old 12-15-2011, 04:19 PM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
#12
Quote:
1- First I put (ns-allinone-2.33_ZRP.tar.gz , PatchZRP.patch and patchmyZRP.sh) in Ns-allinone-2.33 directory
2- give this command: cd ns-allinone-2.33/ && patch -p1 < PatchZRP.patch
3- give this one: touch ns-2.33/common/packet.h && touch ns-2.33/trace/cmu-trace.h
4- Go to Ns-allinone-2.33 and give this command: tar xvf ns-allinone-2.33_ZRP.tar.gz
5- Go to Ns-allinone-2.33/ns-2.33 and I give this: make -k
No reason to do it in a complicated way.
The "patch-and-make" script ( patchmyZRP.sh ) will do everything (1-5)
in a proof sequence. Please follow post #6, § 3) and 4).
Please read patchmyZRP.sh to know what happens.
And : patchmyZRP.sh is to be located outside ns-allinone-2.33/ :
That's why the next command is (4) : cd ns-allinone-2.33/ns-2.33/
 
1 members found this post helpful.
Old 12-15-2011, 10:15 PM   #15
dmaa
LQ Newbie
 
Registered: Dec 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
post ----

Last edited by dmaa; 01-25-2012 at 10:28 AM.
 
  


Reply

Tags
ns2, olsr, zrp



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 06:58 AM
How to patch GPSR routing protocol to ns-2.34 nimacasino Linux - Software 287 06-10-2014 12:27 PM
LXer: Tutorial: Border Gateway Protocol, The Routing Protocol of the Internet LXer Syndicated Linux News 0 11-13-2008 05:11 AM
Time Zone patch diskoe Slackware 41 03-13-2007 12:52 PM

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

All times are GMT -5. The time now is 11:52 AM.

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