How to install ZRP (Zone routing protocol) patch in ns-2.35
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513
Rep:
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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513
Rep:
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'.)
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513
Rep:
#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/
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.