7.9. Perl-5.38.2

The Perl package contains the Practical Extraction and Report Language.

Approximate build time: 0.6 SBU
Required disk space: 280 MB

7.9.1. Installation of Perl

Prepare Perl for compilation:

sh Configure -des                                        \
             -Dprefix=/usr                               \
             -Dvendorprefix=/usr                         \
             -Duseshrplib                                \
             -Dprivlib=/usr/lib/perl5/5.38/core_perl     \
             -Darchlib=/usr/lib/perl5/5.38/core_perl     \
             -Dsitelib=/usr/lib/perl5/5.38/site_perl     \
             -Dsitearch=/usr/lib/perl5/5.38/site_perl    \
             -Dvendorlib=/usr/lib/perl5/5.38/vendor_perl \
             -Dvendorarch=/usr/lib/perl5/5.38/vendor_perl

The meaning of the Configure options:

-des

This is a combination of three options: -d uses defaults for all items; -e ensures completion of all tasks; -s silences non-essential output.

-Dvendorprefix=/usr

This ensures perl knows how to tell packages where they should install their Perl modules.

-Duseshrplib

Build libperl needed by some Perl modules as a shared library, instead of a static library.

-Dprivlib,-Darchlib,-Dsitelib,...

These settings define where Perl looks for installed modules. The LFS editors chose to put them in a directory structure based on the MAJOR.MINOR version of Perl (5.38) which allows upgrading Perl to newer patch levels (the patch level is the last dot separated part in the full version string like 5.38.2) without reinstalling all of the modules.

Compile the package:

make

Install the package:

make install

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