Hello again Jim--
I think I have found a very, subtle, subtle trap. I'm going to submit this for a slight addition to the book.
Jim Gifford wrote:
My original symptoms are described in detail in the first message of this thread. It turns out that Autoconf couldn't find Perl the way I had it installed. At first, I thought that the problem may have been the link to /tools/bin/perl. To be clear. The existence of this link is not relevant to this situation. I have demonstrated that in my testing. Additionally, the default install location for Perl is /usr/local. The INSTALL file in the perl source directory is very interesting reading.Dan McGhee wrote:
Your first point is exactly what has me worried. I have retraced and retraced my steps and I'm convinced, unless I made a typo somewhere, that I have followed the instructions exactly. The only place where I have a doubt is my responses to the questions during the run of the "Configure" script when installing Perl. It did indicate that Perl would be installed in /usr/local and I didn't change it thinking that the option "--prefix=/usr" would take care of it.
Ok Dan, then that's your issue, you don't have to enter anything into the configure, it does a automatic search, it's configure.gnu not Configure.
LFS 6.0, Section 6.33.1, "Installation of Perl, says:
"To have full control over the way Perl is set up, run the interative Configure script and hand-pick the way this package is built. If the defaults it auto-detects are suitable, prepare Perl for comilation with:
'./configure.gnu --prefix=/usr -Dpager="/bin/less -isR'"
The trap is this: if one runs the interactive Configure script AND accepts its defaults, perl will be installed to /usr/local/* and NOT /usr. This happens regardless of the --prefix=/usr option.
./configure.gnu runs the interative configure script. If this is done WITHOUT first running the configure script, all is fine. Perl's configure.sh will have "prefix=/usr." My mistake was that I ran the interactive script, saw that Perl would install to /usr/local, but thought that the option --prefix=/usr would override the settings in configure.sh. It didn't.
After perl is configured, "grep '^install' config.sh" will print the install directories. If they are what you want then all is well. However, if they differ from the way in which one is setting up the LFS system, then configure.sh must be changed.
I didn't test this but I think that:
<./configure.gnu -Dprefix=usr[or-Dinstallprefix=/usr] -Dpager="/bin/less \ -isR>
will cover all bases.
Anyway, for me, all is well. I have recovered up to the point at which I encountered my problem and am forging ahead.
BTW. I was not able to uninstall Perl by "make uninstall." There's no target. Additionally I could find no uninstall information anywhere I looked. I had to manually remove the files for Perl.
Thanks for your help, Jim.
Regards,
Dan
-- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
