How to install ZRP (Zone routing protocol) patch in ns-2.34
UbuntuThis forum is for the discussion of Ubuntu Linux.
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,511
Rep:
# 45
Quote:
make[1]: Nothing to be done for `all'.
Means : Everything is OK.
Quote:
invalid command name "Agent/ZRP"
No zrp was added to the binary 'ns'.
Your failed build / Possible errors : See post # 31.
And please read all other posts in the thread too.
Actually there's no reason to build any "zrp" :
Please install the package zrp-ns https://docs.google.com/open?id=0B7S...kxHY3dQQlR4bjg
.. and you can do : $ ns-zrp example-zrp.tcl(.txt),
.. if you have the two files example.scen, example.traffic : Post #25.
while i run nam zrp.nam in terminal, "You are using the tracefile format older than 1.0a5
which will not allow you to run namgraph"
why?
could you help me please..
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Post # 49, @alwaleed : Welcome to LQ.
No ZRP for ns-2.34, AFAIK.
But you can install the package zrp-ns-2.33-ubu1010_i386.deb, https://docs.google.com/file/d/0B7S2...it?usp=sharing
and then run the examples mentioned elsewhere in the thread with :
$ ns-zrp <example>.tcl
I.e. please read the entire thread.
Examples : example-zrp.tcl zrp_9.tcl zrp-Demo1-1.tcl zrp-Demo2-1-scetch.tcl
Files used by the examples : example.scen example.traffic
P.S.: You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time. But do not add anything to .bashrc / .bash_profile.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 51 . Like post #6 :
""It is assumed, that you have a working ns-allinone-2.33,
i.e. the './install' command was run with no errors.""
Ubuntu 10.04 : export CC=gcc-4.1 CXX=g++-4.1 && ./install
.. And then :
a) cd ns-allinone-2.33/ && patch -p1 < PatchZRP.patch
b) touch ns-2.33/common/packet.h && touch ns-2.33/trace/cmu-trace.h
c) cd ../ && tar xvf ns-allinone-2.33_ZRP.tar.gz
d) cd ns-allinone-2.33/ns-2.33 && make -k
The main purpose of ns-allinone-2.33 is to create one file: The executable 'ns'.
And that's what you get by installing zrp-ns-2.33-ubu1010_i386.deb : 'ns-zrp'.
My friend, I already installed ns-2.34 on ubuntu 10.04 with no error and I want to install ZRP in ns-2.34 not ns-2.33, so what is the procedures to do that and from where get the files for ZRP.
Thanks
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 53 .
Why can you have one application only installed ?
And, repeat from #50 : There is no zrp for ns-2.34.
And : No ns-2.33 is required when ZRP has been built.
The 4.4 MB package zrp-ns-2.33-ubu1010_i386.deb will do.
This is how it works when your executable 'ns' from ns-2.34/ was built :
Save the file 'ns', and ns-2.34/ can actually be deleted.
Save ns-allinone-2.34/lib:/bin , all other folders can be deleted.
You may need to save some examples : ns-2.34/tcl/ex/, etc.
I.e. $ 'ns' : Will work as a standalone file.
Everything else is compiled into that one file : 'ns'.
ZRP : No ns-2.3x/tcl/ex/, ns-2.3x/tcl/lib/, ns-2.3x/tcl/mobility/,
etc. is required for any zrp example.
* zrp-examples-2012.tar.bz2 ( 83 kB ) https://docs.google.com/file/d/0B7S2...it?usp=sharing
All examples can be used with the command $ ns-zrp <example>.tcl
.. I.e. when one have "25" different versions of ns2 installed,
then all the 'ns' executable must have different names.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 55 : Please read post # 54 : $ sudo dpkg -i zrp-ns-2.33-ubu1010_i386.deb
$ cd zrp-examples/ ; $ ns-zrp <example>.tcl ( No ns-2.33 is required ! )
If you insist in building a (very) poor copy of the executable 'ns-zrp': See post # 52.
Note : A zrp build on Ubuntu 10.04 results in a very poor 'validation' :
Post #6 here http://www.linuxquestions.org/questi...-4175425967/#6
Your current OS, Ubuntu 10.04 : 50 group tests will fail at validation.
There are 119 group tests, 2,000 sub tests: It's about hundreds of fails.
Ubuntu 10.10 : ""validate overall report: all tests passed"".
The content in the package zrp-ns-2.33-ubu1010_i386.deb is from Ubuntu 10.10.
My friend. I'm beginner in ns2 and I'm encounter problems when install ZRP. may you explain me the step by step to install ZRP in ns-2.33 on ubuntu 10.04
Thanks
Hi everyone, I tried to install ns-2.33 in ubuntu 10.10 but the first step when excuted this command: sudo apt-get install xorg-dev g++ xgraph the following error appear
E: Unable to locate package xorg-dev
E: Package 'xgraph' has no installation candidate
may anyone help me by sending step by step to install ns-2.33 in ubuntu 10.10 as soon as possible.
thanks
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.