LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 10-19-2016, 11:11 AM   #1
koustubh
LQ Newbie
 
Registered: Oct 2016
Posts: 8

Rep: Reputation: Disabled
Problem with applying patch while installing glibc-2.24 in lfs


Hi,

I am building lfs on Ubuntu-16.04. And in Chapter 6 of lfs while installing glibc-2.2.4 i am stuck at the following error:


Code:
root:/sources# tar xf glibc-2.24.tar.xz
root:/sources# cd glibc-2.24
root:/sources/glibc-2.24# patch -Np1 -i ../glibc-2.24-fhs-1.patch
bash: patch: command not found
Please help me with the above problem. Would really appreciate your help.

Last edited by koustubh; 10-19-2016 at 11:14 AM. Reason: Previous post could have created confusuion
 
Old 10-19-2016, 11:21 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
You should have patch in the /tools directory (it was created in chapter 5). When you entered your chroot environment, you should have set a command path that included /tools right at the end.

You can check whether you did this correctly by typing echo $PATH. If /tools is not included, then your chroot instruction was incorrect. If /tools is included, then check whether patch is included in that directory. If not, you will need to go back and build it as the LFS user (it's in section 5.28).

Last edited by hazel; 10-19-2016 at 11:22 AM.
 
Old 10-19-2016, 11:28 AM   #3
koustubh
LQ Newbie
 
Registered: Oct 2016
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
You should have patch in the /tools directory (it was created in chapter 5). When you entered your chroot environment, you should have set a command path that included /tools right at the end.

You can check whether you did this correctly by typing echo $PATH. If /tools is not included, then your chroot instruction was incorrect. If /tools is included, then check whether patch is included in that directory. If not, you will need to go back and build it as the LFS user (it's in section 5.28).
Thank You. I checked using $PATH it showed
Code:
root:/sources/glibc-2.24# echo $PATH
/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin
So I suppose tools is included but it is pointing to bin directory in tools. Is that a problem? If yes how should i proceed further?

Last edited by koustubh; 10-19-2016 at 11:30 AM. Reason: Gramatical error
 
Old 10-19-2016, 01:19 PM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
No, /tools/bin is correct. Sorry for imprecision! So you do have the correct path but you still can't find patch. The next thing is to list /tools/bin and see if patch is actually there. My guess is that you forgot to build it. Fortunately the build order isn't important in chapter 5, so you can go back and build it now if necessary.
 
1 members found this post helpful.
Old 10-20-2016, 08:21 AM   #5
koustubh
LQ Newbie
 
Registered: Oct 2016
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
No, /tools/bin is correct. Sorry for imprecision! So you do have the correct path but you still can't find patch. The next thing is to list /tools/bin and see if patch is actually there. My guess is that you forgot to build it. Fortunately the build order isn't important in chapter 5, so you can go back and build it now if necessary.
Thank you I rebuild the patch in the previous chapter. The problem was solved. Thank you for the support.
 
  


Reply



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
[SOLVED] Bitbake - applying patch to a recipe- No file to patch error phani222 Linux - Newbie 6 01-10-2018 05:14 AM
[SOLVED] LFS 6.8 - check error 2 when installing glibc for chapter 6.9 robofighter Linux From Scratch 4 07-30-2011 03:25 PM
[SOLVED] Slackware 13.1 x86_64 sound problem after applying kernel patch Maestro485 Slackware 6 12-31-2010 02:03 PM
Problem applying patch in RHEL 3.3 Felipe Linux - Software 8 09-10-2010 04:27 AM
Glibc-2.5.1 is giving errors installing on Live cd with LFS 6.3 version shanth Linux - Newbie 2 09-25-2008 12:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:21 AM.

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