[SOLVED] Installation of pmip6-for-ns-2.29-nist.patch
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Hello,
I'm new user of ns-2.I've installed the ns-2.29 and nist-ns-2.29.mob
when i tried to install the patch pmip6-for-ns-2.29-nist.patch.
I had this errors
patching file p1
Hunk #1 FAILED at 124.
1 out of 1 hunk FAILED -- saving rejects to file p1.rej
patching file p1
Hunk #1 FAILED at 304.
Hunk #2 FAILED at 444.
Hunk #3 FAILED at 514.
Hunk #4 FAILED at 639.
Hunk #5 FAILED at 2746.
Hunk #6 FAILED at 3251.
Hunk #7 FAILED at 3284.
Hunk #8 FAILED at 3848.
8 out of 8 hunks FAILED -- saving rejects to file p1.rej
patching file p1
Hunk #1 FAILED at 922.
1 out of 1 hunk FAILED -- saving rejects to file p1.rej
The next patch would create the file p1,
which already exists! Assume -R? [n] y
patching file p1
Hunk #1 FAILED at 1.
File p1 is not empty after patch, as expected
1 out of 1 hunk FAILED -- saving rejects to file p1.rej
The next patch would create the file p1,
which already exists! Assume -R? [n] y
patching file p1
Hunk #1 FAILED at 1.
File p1 is not empty after patch, as expected
1 out of 1 hunk FAILED -- saving rejects to file p1.rej
The next patch would create the file p1,
which already exists! Assume -R? [n] y
patching file p1
Hunk #1 FAILED at 1.
File p1 is not empty after patch, as expected
1 out of 1 hunk FAILED -- saving rejects to file p1.rej
patching file p1
Hunk #1 FAILED at 77.
Hunk #2 FAILED at 365.
Hunk #3 FAILED at 542.
3 out of 3 hunks FAILED -- saving rejects to file p1.rej
patching file p1
Hunk #1 FAILED at 228.
1 out of 1 hunk FAILED -- saving rejects to file p1.rej
patching file p1
Hunk #1 FAILED at 177.
1 out of 1 hunk FAILED -- saving rejects to file p1.rej
patching file p1
Hunk #1 FAILED at 201.
Hunk #2 FAILED at 324.
2 out of 2 hunks FAILED -- saving rejects to file p1.rej
patching file p1
Hunk #1 FAILED at 38.
Hunk #2 FAILED at 52.
Hunk #3 FAILED at 86.
Hunk #4 FAILED at 852.
Hunk #5 FAILED at 968.
5 out of 5 hunks FAILED -- saving rejects to file p1.rej
patching file p1
Hunk #1 FAILED at 316.
1 out of 1 hunk FAILED -- saving rejects to file p1.rej
Could anyone help me???
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
Welcome to LQ.
Quote:
1 out of 1 hunk FAILED -- saving rejects to file p1.rej
Happens only when you are using a wrong 'patch' command.
Looks like a missing hyphen ( - ) in option -p1 .
The right command sequence is :
$ tar xvf ns-allinone-2.29.3.tar.gz
$ cd ns-allinone-2.29/
$ tar xvf ns-2.29-nist-mob-022707.tgz
$ patch -p0 < pmip6-for-ns-2.29-nist.patch
$ export CC=gcc34 CXX=g++34 && ./install ( Or whatever g++ you can use for NIST.)
* 32bits OS`s which will support NIST : CentOS, Fedora, PCLinuxOS.
And : 32bits Ubuntu when the "compat-gcc34" compilers are installed.
Mr Knudlf,
I've installed ns-allinone-2.29 from the package ns-allinone-2.29.3.tar.gz.Then i validate ns-2.29.And before installing the ns-allinone-2.29,
I execute this command :export CC=gcc41 CXX=g++41 && ./install.
After this command, I download the nist-mob(..) package and i remove the old ns-2.29 and validate the new ns-2.29.
Is it wrong?Should I repeat the installation.
thanks for the reply
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
Re #3.
If you have an Ubuntu version where g++41 can compile NIST,
and if your actions are providing an executable 'ns' which can do :
$ ns datarate1.tcl
$ ns QoS_example2-4.tcl
... with no issues, then everything is OK.
I've tried by using patch p0<pmip6-for-ns-2.29-nist.patch.
I've had the same errors.
patching file p0
Hunk #1 FAILED at 124.
1 out of 1 hunk FAILED -- saving rejects to file p0.rej
patching file p0
Hunk #1 FAILED at 304.
Hunk #2 FAILED at 444.
Hunk #3 succeeded at 438 with fuzz 2 (offset -76 lines).
Hunk #4 FAILED at 647.
Hunk #5 FAILED at 2754.
Hunk #6 FAILED at 3259.
Hunk #7 succeeded at 621 with fuzz 2 (offset -2671 lines).
Hunk #8 FAILED at 3864.
6 out of 8 hunks FAILED -- saving rejects to file p0.rej
patching file p0
Hunk #1 FAILED at 922.
1 out of 1 hunk FAILED -- saving rejects to file p0.rej
The next patch would create the file p0,
which already exists! Assume -R? [n] y
patching file p0
Hunk #1 FAILED at 1.
File p0 is not empty after patch, as expected
1 out of 1 hunk FAILED -- saving rejects to file p0.rej
The next patch would create the file p0,
which already exists! Assume -R? [n] y
patching file p0
Hunk #1 FAILED at 1.
File p0 is not empty after patch, as expected
1 out of 1 hunk FAILED -- saving rejects to file p0.rej
The next patch would create the file p0,
which already exists! Assume -R? [n] y
patching file p0
Hunk #1 FAILED at 1.
File p0 is not empty after patch, as expected
1 out of 1 hunk FAILED -- saving rejects to file p0.rej
patching file p0
Hunk #1 FAILED at 77.
Hunk #2 FAILED at 365.
Hunk #3 FAILED at 542.
3 out of 3 hunks FAILED -- saving rejects to file p0.rej
patching file p0
Hunk #1 FAILED at 228.
1 out of 1 hunk FAILED -- saving rejects to file p0.rej
patching file p0
Hunk #1 FAILED at 177.
1 out of 1 hunk FAILED -- saving rejects to file p0.rej
patching file p0
Hunk #1 FAILED at 201.
Hunk #2 FAILED at 324.
2 out of 2 hunks FAILED -- saving rejects to file p0.rej
patching file p0
Hunk #1 FAILED at 38.
Hunk #2 FAILED at 52.
Hunk #3 FAILED at 86.
Hunk #4 FAILED at 852.
Hunk #5 FAILED at 968.
5 out of 5 hunks FAILED -- saving rejects to file p0.rej
patching file p0
Hunk #1 FAILED at 316.
1 out of 1 hunk FAILED -- saving rejects to file p0.rej
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
Re #3.
Quote:
I execute this command :export CC=gcc41 CXX=g++41 && ./install
New compiler packages compat-gcc34 / compat-g++34 were created yesterday,
.. to make it possible compiling {ns-2.29 + the old nist-mob code} in Ubuntu:
$ export CC=gcc41 CXX=g++34 && ./install
Packages : compat-g++34_3.4.6-ubuntu10_i386.deb
.. depends on : compat-gcc34_3.4.6-ubuntu15_i386.deb
Note : compat-gcc34_3.4.6-ubuntu15 is for Ubuntu 11.** .. 15.** .
I'm reinstalling the nist.I do the command sequence mentioned in #ref 2.But when I'm executing this command:$ export CC=gcc34 CXX=g++34 && ./install ( Or whatever g++ you can use for NIST.), i have this error:* Build tcl8.4.11
============================================================
creating cache ./config.cache
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... gcc34
checking whether the C compiler (gcc34 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
tcl8.3.2 configuration failed! Exiting ...
Tcl is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.
What can i do to fix it??
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
Re #14.
Quote:
I used this links :compat-gcc34 "https://drive.google.com/file/d/0B7S...ew?usp=sharing"
compat-g++34 "https://drive.google.com/file/d/0B7S...ew?usp=sharing"
No valid links are shown in post #14. Links, see post #9.
Quote:
I tried to install the packages but the files are not opened.
Good, you are not supposed to see any files opening.
Why not tell which Ubuntu version you are using ?
Read post #11 : "".... Ubuntu OS. Which architecture is it ? i686 or x86_64 ?
Ubuntu version ? ""
If you are using say Ubuntu 10.04, some other packages must be used.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.