[SOLVED] Problem with applying patch while installing glibc-2.24 in lfs
Linux From ScratchThis 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
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.
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
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 /toolsis 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).
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 /toolsis 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).
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.