LinuxQuestions.org
Register a domain and help support LQ
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 07-22-2003, 09:13 PM   #1
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 45
6.14.2 glibc installation - patch command not found


Ok, things have been going along here smoothly, but now I'm at 6.14.2, Glibc installation. I follow along and unpack the clibc-linuxthreads into my glibc-2.3.1 directory. I also moved the 2 patch files in there.

When i run: patch -Np1 -i glibc-2.3.1-root-perl.patch

I get the command not found error on patch:

bash: patch: command not found

Any ideas where I went wrong and now don't have patch?

From my Ch. 5 fun I have a patch-2.5.4 directory that has patch in it. I suppose I should just put that path in there and run the command.
The way I'm doing it, that directory is in /LFS/packages/temp. In Ch. 6 I am unpacking to /LFS/packages/temp6.

thanks...
 
Old 07-23-2003, 01:35 PM   #2
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Original Poster
Rep: Reputation: 45
Re: 6.14.2 glibc installation - patch command not found

Quote:
Originally posted by itsjustme
I suppose I should just put that path in there and run the command.
Well, that's what I did and it seemed to work.

Moving right along....
 
Old 07-23-2003, 03:51 PM   #3
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
When you chroot'ed at the beginning of chapter 6, the chroot command included a definition for your path:

Quote:
chroot $LFS /static/bin/env -i \
HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/static/bin \
/static/bin/bash --login
If you followed the commands to install patch exactly as they were in chapter 5, then the executable should have been placed in either /bin or /usr/bin. So my only guesses are:

1) You accidentally mis-typed the path string when you chroot'ed
2) You accidentally left off the prefix argument for patch

Where is teh static version of patch located on your drive?
 
Old 07-23-2003, 04:37 PM   #4
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Original Poster
Rep: Reputation: 45
Hmmmm... the only patch I have is in /packages/temp/Patch-2.5.4. No find hits in any of the lib directories. So, I must've missed something in Chapter 5. I was being vewie vewie careful though...

Which bin directory should patch be in, /bin or /usr/bin? I'm assuming /usr/bin, since that's where it is on this red hat machine. Also, I'm assuming that I can now just simply copy patch from /packages/temp/patch-2.5.4 directly into /usr/bin.

Dang! Gotta be careful with all those assumings....

Thanks...
 
Old 07-23-2003, 05:04 PM   #5
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
In that case, are you sure you executed the "make install" part of the patch installation? If the only place you have patch is in the directory you compiled it in, that would likely be the case.

As for my /bin and /usr/bin comment, it should be located in $LFS/static/bin. I was getting a little ahead of myself. When you compile patch again later in chapter 6, it will be put in /usr/bin. Any and all of your statically compiled programs will reside in $LFS/static/bin.
 
  


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
syntax error in glibc patch Furlinastis Linux From Scratch 1 11-01-2005 10:59 PM
LFS 6.0 error: glibc fails check with "g++: command not found" peristaltic Linux From Scratch 1 03-15-2005 07:52 PM
patch: command not found vman33197 Linux From Scratch 2 09-22-2004 09:15 AM
rpm error-> patch: command not found Bosnja Linux - Software 5 01-30-2004 12:59 PM
glibc patch for sscanf.c jarin scott Linux - Software 2 08-03-2003 02:28 PM


All times are GMT -5. The time now is 08:42 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration