7.9. Perl-5.44.0

#### Linux From Scratch - Version 13.1-systemd-rc2

### Chapter 7. Entering Chroot and Building Additional Temporary Tools

- Prev

  Bison-3.8.2

- Next

  Zlib-1.3.2

- Up
- Home

# 7.9 Perl-5.44.0

The Perl package contains the Practical Extraction and Report Language.

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

## 7.9.1 Installation of Perl

Prepare Perl for compilation:

    sh Configure -des                                         \
                 -D prefix=/usr                               \
                 -D vendorprefix=/usr                         \
                 -D useshrplib                                \
                 -D privlib=/usr/lib/perl5/5.44/core_perl     \
                 -D archlib=/usr/lib/perl5/5.44/core_perl     \
                 -D sitelib=/usr/lib/perl5/5.44/site_perl     \
                 -D sitearch=/usr/lib/perl5/5.44/site_perl    \
                 -D vendorlib=/usr/lib/perl5/5.44/vendor_perl \
                 -D vendorarch=/usr/lib/perl5/5.44/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.

`-D vendorprefix=/usr`

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

`-D useshrplib`

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

`-D privlib,-D archlib,-D sitelib,...`

  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.44) which allows upgrading Perl to newer patch levels (the patch level is the last dot separated part in the full version string like 5.44.0) without reinstalling all of the modules.

Compile the package:

    make

Install the package:

    make install

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

- Prev

  Bison-3.8.2

- Next

  Zlib-1.3.2

- Up
- Home