LinuxQuestions.org
Help answer threads with 0 replies.
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 02-10-2004, 07:54 PM   #1
lowpro2k3
Member
 
Registered: Oct 2003
Location: Canada
Distribution: Slackware
Posts: 340

Rep: Reputation: 30
I messed up the perl install -- can I restart?


I'm so upset right now... I got pretty far in the LFS project, I was excited to finally move on to chapter 6 after a full day of compiling, but now I'm in a bind. I unzipped and patched perl, and did a 'chmod u+x hints/linux.sh'. I think this is where I screwed up:

Code:
echo 'static_ext="IO re Fcnt1"' >> hints/linux.sh
./configure.gnu --prefix=/tools
make perl utilities
That bold 1 (one) is supposed to be an l (elle). I got this error after the 'make perl utilities':

Code:
cc: lib/auto/Fcnt1/Fcnt1.a: No such file or directory
make: *** [perl] Error 1
I tried to repeat the process starting from after where I applied the patch, but I still get the same error message. Then I tried a 'make clean' and a './configure.gnu --clean' (I dont think that can be done...) and a few things along those lines and retried again, with the same errors.

My question is, can I get advice on how to correct my mistake, or, is perl even really necessary for the rest of the LFS project? If its not needed I dont mind not adding it so long as it causes no problems. Thanks!

edit...

Sorry, I got it.
Code:
make distclean
worked, I just started over from there. I hate answering my own stuff, sorry people, take it easy.

Last edited by lowpro2k3; 02-10-2004 at 08:04 PM.
 
Old 02-10-2004, 08:09 PM   #2
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
Are you doing lfs-4.1 or lfs-5.0? I was looking through lfs-5.0 and don't see that echo command involved?
 
Old 02-11-2004, 08:56 AM   #3
lowpro2k3
Member
 
Registered: Oct 2003
Location: Canada
Distribution: Slackware
Posts: 340

Original Poster
Rep: Reputation: 30
I got it working, but I'm using LFS 5.0 as well. In chapter 5, the last package to install is Perl-5.8.0. First the book says to unpack the archive then patch it:

"First adapt some hard-wired paths to the C library:"
Code:
patch -Np1 -i ../perl-5.8.0-libc-3.patch
"And make sure some static extensions get built:"
Code:
chmod u+w hints/linux.sh
echo 'static_ext="IO re Fcntl"' >> hints/linux.sh
"Now prepare for the Perl compilation:"
Code:
./configure.gnu --prefix=/tools
"Compile only the required tools"
Code:
make perl utilities
"Then copy these tools and their libraries"
Code:
cp perl pod/pod2man /tools/bin
mkdir -p /tools/lib/perl5/5.8.0
cp -R lib/* /tools/lib/perl5/5.8.0
But like I said after I edited, I did a 'make distclean' then started again and it worked.
 
Old 02-11-2004, 10:30 AM   #4
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
I went back and read the book again and it gave me these instructions about building the static instuctions. I seemed to add an option to ./configure that did the same thing.
Quote:
./configure.gnu --prefix=/tools -Dstatic_ext='IO Fcntl'

The meaning of the configure option:

-Dstatic_ext='IO Fcntl': This tells Perl to build the minimum set of static extensions needed for running the Coreutils test suite in the next chapter.
this is the link I read these on
http://lfs.130th.net/lfs/view/test/

I just realized I have been following the directions from lfs -5.1pre(that is why I thought you were doing it differently. I think I downloaded packages the the 5.0 book reccomended, but was building it as the directions in 5.1pre. It seems to be working o.k.

Last edited by shanenin; 02-11-2004 at 10:36 AM.
 
  


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
Perl has messed up my system..Can anyone help? midgcool Linux - Software 2 12-05-2004 10:34 AM
messed up grub with hd install what to do? gonus Debian 5 09-29-2004 09:16 PM
I think my install is really messed up. chornobyl Linux - Newbie 3 03-31-2004 01:14 AM
Help! Messed up slackware install LinuxBlackBox Slackware 18 03-04-2004 05:57 PM
I think I messed up my mandrake install. Mercutio701 Linux - Newbie 9 02-01-2004 07:00 PM

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

All times are GMT -5. The time now is 09:10 PM.

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