Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
![Reply](https://www.linuxquestions.org/questions/images/buttons/reply.gif) |
|
04-15-2015, 10:56 AM
|
#1
|
Member
Registered: Apr 2015
Posts: 58
Rep: ![Reputation: Disabled](https://www.linuxquestions.org/questions/images/reputation/reputation_off.gif)
|
Installation of pmip6-for-ns-2.29-nist.patch
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???
|
|
|
04-15-2015, 11:51 AM
|
#2
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
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.
-
Last edited by knudfl; 04-16-2015 at 12:39 PM.
|
|
|
04-15-2015, 02:55 PM
|
#3
|
Member
Registered: Apr 2015
Posts: 58
Original Poster
Rep: ![Reputation: Disabled](https://www.linuxquestions.org/questions/images/reputation/reputation_off.gif)
|
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
|
|
|
04-15-2015, 03:13 PM
|
#4
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
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.
-
|
|
|
04-15-2015, 03:42 PM
|
#5
|
Member
Registered: Apr 2015
Posts: 58
Original Poster
Rep: ![Reputation: Disabled](https://www.linuxquestions.org/questions/images/reputation/reputation_off.gif)
|
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
|
|
|
04-15-2015, 05:06 PM
|
#6
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Re #5.
Quote:
I've tried by using patch p0<pmip6-for-ns-2.29-nist.patch.
|
Wrong. Please read post #2 : $ patch -p0 < pmip6-for-ns-2.29-nist.patch .
I.e. patch<space><hyphen>p0<space>
You are still missing the hyphen ( - ) in your command.
|
|
|
04-16-2015, 12:26 AM
|
#7
|
Member
Registered: Apr 2015
Posts: 58
Original Poster
Rep: ![Reputation: Disabled](https://www.linuxquestions.org/questions/images/reputation/reputation_off.gif)
|
What is the hyphen?What should i put??
|
|
|
04-16-2015, 01:18 AM
|
#8
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Re #7.
Hyphen : 11 million hits :
https://www.google.com/webhp?hl=all&...hl=en&q=hyphen
Example http://en.wikipedia.org/wiki/Hyphen
You could also say "dash" : ---
Here is shown 10 times hyphen / dash : ----------
The `hyphen' is the character that comes before p0 in the command :
$ patch -p0 < pmip6-for-ns-2.29-nist.patch
... Besides that : Why are you typing the commands ? ?
* You can just copy / paste the commands from post #2.
-
Last edited by knudfl; 04-16-2015 at 03:00 AM.
|
|
|
04-17-2015, 05:40 AM
|
#9
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
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.** .
compat-gcc34**15 https://drive.google.com/file/d/0B7S...ew?usp=sharing
compat-g++34 https://drive.google.com/file/d/0B7S...ew?usp=sharing
-
Last edited by knudfl; 04-24-2015 at 05:58 PM.
|
|
|
04-17-2015, 03:37 PM
|
#10
|
Member
Registered: Apr 2015
Posts: 58
Original Poster
Rep: ![Reputation: Disabled](https://www.linuxquestions.org/questions/images/reputation/reputation_off.gif)
|
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??
|
|
|
04-17-2015, 03:50 PM
|
#11
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Re #10.
Looks like you are using an Ubuntu OS.
Which architecture is it ? i686 or x86_64 ?
Ubuntu version ?
Note 1 : ns2 is for a 32bits OS.
Note 2 : A compiler (gcc34 / g++34) must be installed before you can use it.
-
|
|
|
04-17-2015, 03:58 PM
|
#12
|
Member
Registered: Apr 2015
Posts: 58
Original Poster
Rep: ![Reputation: Disabled](https://www.linuxquestions.org/questions/images/reputation/reputation_off.gif)
|
How can i install it ??
Before i could install the ns-2
by using $ export CC=gcc41 CXX=g++41 && ./install
|
|
|
04-17-2015, 04:07 PM
|
#13
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Re #12.
How to install compat-gcc34_3.4.6-ubuntu14_i386.deb, compat-g++34_3-4-6-ubuntu14_i386.deb :
1) Download the packages.
2) Click the packages, and your 'Package Installer' will install the packages.
? ? Why are you asking : You obviously installed gcc41-compat/g++41-compat ?
Same method can be used for other downloaded packages.
-
Last edited by knudfl; 04-17-2015 at 07:07 PM.
|
|
|
04-17-2015, 05:31 PM
|
#15
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
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.
-
Last edited by knudfl; 04-17-2015 at 07:10 PM.
|
|
|
All times are GMT -5. The time now is 01:43 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|