<< Back to shouce.jb51.net

5.34. Perl-5.8.5

The Perl package contains the Practical Extraction and Report Language.

Approximate build time: 0.8 SBU

Required disk space: 74 MB

Perl installation depends on: Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, and Sed

5.34.1. Installation of Perl

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

patch -Np1 -i ../perl-5.8.5-libc-1.patch

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

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

The meaning of the configure option:

-Dstatic_ext='IO Fcntl POSIX'

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

Compile only the required tools:

make perl utilities

Although Perl comes with a test suite, it is not recommended to run it at this point. Only part of Perl was built and running make test now will cause the rest of Perl to be built as well, which is unnecessary at this point. The test suite can be run in the next chapter if desired.

Copy these tools and their libraries:

cp perl pod/pod2man /tools/bin
mkdir -p /tools/lib/perl5/5.8.5
cp -R lib/* /tools/lib/perl5/5.8.5

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