5.26. Perl-5.10.0

The Perl package contains the Practical Extraction and Report Language.

User Notes: http://wiki.linuxfromscratch.org/hlfs/wiki/perl

5.26.1. Installation of Perl

First adapt some hard-wired paths to the C library by applying the following patch:

sed 's/\(prefix.*\)libc.so.6/\1libc.so.0/' ../perl-5.10.0-libc-1.patch | patch -Np1

Prepare Perl for compilation (make sure to get the 'Data/Dumper Fcntl IO POSIX' part of the command correct—they are all letters):

./configure.gnu --prefix=/tools -Dstatic_ext='Data/Dumper Fcntl IO POSIX'

The meaning of the configure options:

-Dstatic_ext='Data/Dumper Fcntl IO POSIX'

This tells Perl to build the minimum set of static extensions needed for installing and testing the Coreutils and Glibc packages in the next chapter.

Only a few of the utilities contained in this package need to be built:

make perl utilities

Install these tools and their libraries:

install -v perl pod/pod2man /tools/bin
install -vd /tools/lib/perl5/5.10.0
cp -vR lib/* /tools/lib/perl5/5.10.0

Details on this package are located in Section 6.24.2, “Contents of Perl.”