LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-11-2004, 10:39 AM   #1
michaelbhahn
LQ Newbie
 
Registered: Jun 2004
Location: SoCal
Distribution: FDC 2
Posts: 22

Rep: Reputation: 15
Coreutils-5.2.1 error LFS 5.1


In chapter 6 while applying make to coreutils-5.2.1 I get the following errors;

make[2]: Entering directory `/sources/coreutils-5.2.1/man'
Updating man page uname.1
mkdir: cannot create directory `uname.td': File exists
ln: `uname': File exists
Can't locate POSIX.pm in @INC (@INC contains: /tools/lib/perl5/5.8.4/i686-linux /tools/lib/perl5/5.8.4 /tools/lib/perl5/site_perl/5.8.4/i686-linux /tools/lib/perl5/site_perl/5.8.4 /tools/lib/perl5/site_perl .) at ./help2man line 28.
BEGIN failed--compilation aborted at ./help2man line 28.
make[2]: *** [uname.1] Error 2
make[2]: Leaving directory `/sources/coreutils-5.2.1/man'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/coreutils-5.2.1'
make: *** [all] Error 2

I'm not sure why, evrything seemed fine up to this point and I applied both the uname and hostname patch's.

Any Ideas?

-Mike
 
Old 06-11-2004, 10:45 AM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 47
I'd suggest looking closely at the "Makefile"
you may have to edit the $PATH to where POSIX.pm is really located
 
Old 06-11-2004, 02:05 PM   #3
michaelbhahn
LQ Newbie
 
Registered: Jun 2004
Location: SoCal
Distribution: FDC 2
Posts: 22

Original Poster
Rep: Reputation: 15
Well I looked through the Makefile(s) and couldnt seem to find anything that represents a $PATH to POSIX.pm. I tried untaring the coreutils package again, applied the paches and still got the same errors on make.

Is it possible that something went wrong earlier in the build, and what would I check?

mmmmmmmm

-Mike
 
Old 06-17-2004, 02:07 PM   #4
michaelbhahn
LQ Newbie
 
Registered: Jun 2004
Location: SoCal
Distribution: FDC 2
Posts: 22

Original Poster
Rep: Reputation: 15
I'm so stupid

I set my enviornment variables wrong when I built my tool chain. Rebuilt it and everything went fine!

First LFS system booted with no problems!!!!

Thanks LFS Team

-Mike
 
Old 06-18-2004, 03:36 AM   #5
ergocano
LQ Newbie
 
Registered: Jun 2004
Posts: 1

Rep: Reputation: 0
Hi Mike,

I get exactly the same error as yours.

Could you please explain me how you fix it?

Thanks, and sorry for my english
 
Old 06-18-2004, 10:54 AM   #6
michaelbhahn
LQ Newbie
 
Registered: Jun 2004
Location: SoCal
Distribution: FDC 2
Posts: 22

Original Poster
Rep: Reputation: 15
Ergocano
There could be many reasons for getting errors like the one I had. Most likely it is from typing errors or, in my case, because I did not set up my working environment properly as outlined in the beginning of the book. Everything seemed to work fine until I got this hard error while installing Coreutils. After starting over and rebuilding my tools chain from scratch I found that my builds where very different with the proper settings. I would suggest that you start over and make sure that you follow the book exactly.
-mike
 
Old 12-06-2004, 07:38 PM   #7
pumazi
LQ Newbie
 
Registered: Nov 2004
Location: Pittsburgh, PA, USA
Distribution: Gentoo
Posts: 22

Rep: Reputation: 15
In case someone else runs into this error... don't start over.

problem seems to been in the chapter 5 perl-5.8.4 area

final resolution: redo chapter 5 section perl-5.8.4 & make sure to read the 'Important' in this section
 
Old 03-19-2007, 10:09 AM   #8
hungnguyen
LQ Newbie
 
Registered: Mar 2007
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by michaelbhahn
I'm so stupid

I set my enviornment variables wrong when I built my tool chain. Rebuilt it and everything went fine!

First LFS system booted with no problems!!!!

Thanks LFS Team

-Mike
Hi

Now i have exactly problem, i don't think i typed wrong

can you explain more specific what you did to make it work again please!

i'm getting headache, i couldn't sleep for few nights just to build LFS

Thanks
H.Nguyen
 
Old 09-01-2007, 01:36 PM   #9
hedrok
LQ Newbie
 
Registered: Sep 2007
Distribution: Xubuntu, building LFS
Posts: 1

Rep: Reputation: 0
pumazi, thank you! Your message helped me very much!
hungnguyen, i think you should listen to it too.

I just want to add that to follow instructions from chapter five you should use back upped /tools (in the end of chapter five you were advised to backup), not current ones. Don't forget that this should be done from lfs user from host system. Or just as root from host system without any tools (but this is not recommended).
And copy compiled files to current /tools

sorry for my English.
 
  


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
Section 6.15 Coreutils compile error microsoft/linux Linux From Scratch 7 09-04-2005 07:48 PM
lfs-6.1 Patch-2.5.4 //ERROR or No ERROR?? ukyo Linux From Scratch 1 08-25-2005 07:34 AM
now getting error in coreutils test(chapter 6-lfs-5.1.1) linuxbh Linux From Scratch 2 09-16-2004 02:45 AM
coreutils-5.0 error rahul_jain_9684 Linux From Scratch 0 09-27-2003 12:51 AM
$LFS Error cbates55 Linux - Distributions 10 12-29-2001 10:24 PM


All times are GMT -5. The time now is 05:00 AM.

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