5.31. Perl-5.20.2

The Perl package contains the Practical Extraction and Report Language.

Approximate build time: 1.2 SBU
Required disk space: 298 MB

5.31.1. Installation of Perl

Prepare Perl for compilation:

sh Configure -des -Dprefix=/tools -Dlibs=-lm

Build the package:

make

Although Perl comes with a test suite, it would be better to wait until it is installed in the next chapter.

Only a few of the utilities and libraries need to be installed at this time:

mkdir -pv debian/tmp/tools/bin debian/tmp/tools/lib/perl5/5.20.2
cp -v perl cpan/podlators/pod2man debian/tmp/tools/bin
cp -Rv lib/* debian/tmp/tools/lib/perl5/5.20.2

Fix permissions of the Perl modules:

chmod --changes -R u+w debian/tmp/tools/lib/perl5/5.20.2

Create the package archive:

buildpkg --package=perl-pass1

Install the package:

dpkg -i ../perl-pass1_5.20.2_*.deb

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