LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Coreutils-5.2.1 error LFS 5.1 (https://www.linuxquestions.org/questions/linux-from-scratch-13/coreutils-5-2-1-error-lfs-5-1-a-192347/)

michaelbhahn 06-11-2004 10:39 AM

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

320mb 06-11-2004 10:45 AM

I'd suggest looking closely at the "Makefile"
you may have to edit the $PATH to where POSIX.pm is really located

michaelbhahn 06-11-2004 02:05 PM

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

michaelbhahn 06-17-2004 02:07 PM

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

ergocano 06-18-2004 03:36 AM

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

michaelbhahn 06-18-2004 10:54 AM

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

pumazi 12-06-2004 07:38 PM

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

hungnguyen 03-19-2007 10:09 AM

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

hedrok 09-01-2007 01:36 PM

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.


All times are GMT -5. The time now is 10:49 AM.