LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-26-2006, 01:50 PM   #1
jm2003uk
LQ Newbie
 
Registered: Dec 2004
Posts: 5

Rep: Reputation: 0
Question Problems with patch


Hi all!

This is my first proper attempt at building an LFS system and so far, it's gone ok.

But i've hit a problem. I've got up to chapter 6.7 where you have to run the linux-libc-headers patch. I type in the command and get the reply:
Code:
bash: patch: command not found
This is in the chroot environment. I can still get the command to work under the 'lfs' user but not when root

Anyone able to give em some pointers?
 
Old 10-26-2006, 02:07 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

The error tells you that the patch program cannot be found.

- Did you enter the chrooted environment correctly chap 6.4 (PATH to name one),
- Did you forget to install patch or did something go wrong in chapter 5.25?
 
Old 10-26-2006, 02:41 PM   #3
jm2003uk
LQ Newbie
 
Registered: Dec 2004
Posts: 5

Original Poster
Rep: Reputation: 0
I'm sure everything is installed ok...all the patches that needed doing in chapter 5 (when running as lfs) worked fine. Just now that i'm using root it doesn't find it. It could be that i've missed something somewhere but i'm sure i've followed the commands to the letter.

EDIT

just gone along to /usr/bin and a few of the other places and patch isn't listed in either directory. So i'm guessing it is something i've missed or a typo

Last edited by jm2003uk; 10-26-2006 at 02:50 PM.
 
Old 10-26-2006, 03:08 PM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Quote:
Originally Posted by jm2003uk
I'm sure everything is installed ok...all the patches that needed doing in chapter 5 (when running as lfs) worked fine.
The patch program used in chapter 5 is a different one from the one used in chapter 6. Chapter 6 uses the one installed in chapter 5, chapter 5 uses the one that's on your host system/liveCD. After you chroot you can only use the commands installed in chapter 5, not those outside that environment.

Quote:
just gone along to /usr/bin and a few of the other places and patch isn't listed in either directory. So i'm guessing it is something i've missed or a typo
If patch is the only program missing (probably) then re-start from there.
 
Old 10-26-2006, 03:39 PM   #5
jm2003uk
LQ Newbie
 
Registered: Dec 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Cheers for the pointers, but i think i'll start from the begining again (when i have my next day off, lol). I've got this far now so it'll be that little bit easier when i do it again. Will post how it goes!
 
  


Reply


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
patch and evdev problems godhugh Linux - Newbie 0 01-06-2005 11:52 AM
openmosix: patch problems opabil Linux - Distributions 0 12-21-2004 04:53 AM
How to Apply patch for Mass Storage device to work? (uss725-2.4.20-rc2.patch) cevjr Linux - Hardware 3 04-21-2004 12:14 AM
problems with a rhas patch upgrade msteudel Linux - Software 2 02-26-2004 01:21 PM
patch problems rverlander Linux - General 1 07-07-2002 02:58 PM

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

All times are GMT -5. The time now is 07:38 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