LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 04-15-2015, 10:56 AM   #1
najat
Member
 
Registered: Apr 2015
Posts: 58
Blog Entries: 1

Rep: Reputation: Disabled
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???
 
Old 04-15-2015, 11:51 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.
 
Old 04-15-2015, 02:55 PM   #3
najat
Member
 
Registered: Apr 2015
Posts: 58

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
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
 
Old 04-15-2015, 03:13 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.

-
 
Old 04-15-2015, 03:42 PM   #5
najat
Member
 
Registered: Apr 2015
Posts: 58

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
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
 
Old 04-15-2015, 05:06 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.
 
Old 04-16-2015, 12:26 AM   #7
najat
Member
 
Registered: Apr 2015
Posts: 58

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
What is the hyphen?What should i put??
 
Old 04-16-2015, 01:18 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.
 
Old 04-17-2015, 05:40 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.
 
Old 04-17-2015, 03:37 PM   #10
najat
Member
 
Registered: Apr 2015
Posts: 58

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
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??
 
Old 04-17-2015, 03:50 PM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.


-
 
Old 04-17-2015, 03:58 PM   #12
najat
Member
 
Registered: Apr 2015
Posts: 58

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
How can i install it ??
Before i could install the ns-2
by using $ export CC=gcc41 CXX=g++41 && ./install
 
Old 04-17-2015, 04:07 PM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.
 
Old 04-17-2015, 04:58 PM   #14
najat
Member
 
Registered: Apr 2015
Posts: 58

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
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
to download the packages.
After downloading, I tried to install the packages but the files are not opened.
Do you know other sites to download the packages
 
Old 04-17-2015, 05:31 PM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.
 
  


Reply

Tags
compat-g++34, nist-mob, ns2, pmip6


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Install ns2.29 on Ubunto 11.04(NIST Mobility Patch) fahimeh_ak Programming 38 03-24-2015 07:45 AM
Please help me with NIST Net installation netbaby Linux - Software 0 09-24-2011 01:51 PM
About NIST Net installation netbaby Linux - Networking 3 09-21-2011 09:23 AM
NIST Net Installation on Fedora gebronmc Fedora 6 04-21-2010 03:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:43 PM.

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