Linux From Scratch - Version 20161203-systemd

Chapter 6. Installing Basic System Software

6.40. Perl-5.24.0

The Perl package contains the Practical Extraction and Report
Language.

Approximate build time:6.2 SBU

Required disk space:245 MB

6.40.1. Installation of Perl

First create a basic /etc/hosts file
to be referenced in one of Perl's configuration files as well as
the optional test suite:

echo "127.0.0.1 localhost $(hostname)" > /etc/hosts

This version of Perl now builds the Compress::Raw::Zlib and
Compress::Raw::BZip2 modules. By default Perl will use an internal
copy of the sources for the build. Issue the following command so
that Perl will use the libraries installed on the system:

export BUILD_ZLIB=False
export BUILD_BZIP2=0

To have full control over the way Perl is set up, you can remove
the “-des” options from the following
command and hand-pick the way this package is built. Alternatively,
use the command exactly as below to use the defaults that Perl
auto-detects: