%general-entities; ]> perl &perl-version;
&perl-url;
Perl-&perl-version; Perl <para>The Perl package contains the Practical Extraction and Report Language.</para> <segmentedlist> <segtitle>&buildtime;</segtitle> <segtitle>&diskspace;</segtitle> <seglistitem> <seg>&perl-fin-sbu;</seg> <seg>&perl-fin-du;</seg> </seglistitem> </segmentedlist> </sect2> <sect2 role="installation"> <title>Installation of Perl First, apply a patch that fixes an issue highlighted by recent versions of gdbm: patch -Np1 -i ../&perl-fix-patch; 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: sh Configure -des \ -Dprefix=/usr \ -Dvendorprefix=/usr \ -Dprivlib=/usr/lib/perl5/&perl-version-min;/core_perl \ -Darchlib=/usr/lib/perl5/&perl-version-min;/core_perl \ -Dsitelib=/usr/lib/perl5/&perl-version-min;/site_perl \ -Dsitearch=/usr/lib/perl5/&perl-version-min;/site_perl \ -Dvendorlib=/usr/lib/perl5/&perl-version-min;/vendor_perl \ -Dvendorarch=/usr/lib/perl5/&perl-version-min;/vendor_perl \ -Dman1dir=/usr/share/man/man1 \ -Dman3dir=/usr/share/man/man3 \ -Dpager="/usr/bin/less -isR" \ -Duseshrplib \ -Dusethreads The meaning of the configure options: -Dvendorprefix=/usr This ensures perl knows how to tell packages where they should install their perl modules. -Dpager="/usr/bin/less -isR" This ensures that less is used instead of more. -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 Since Groff is not installed yet, Configure thinks that we do not want man pages for Perl. Issuing these parameters overrides this decision. -Duseshrplib Build a shared libperl needed by some perl modules. -Dusethreads Build perl with support for threads. -Dprivlib,-Darchlib,-Dsitelib,... These settings define where Perl is looking for installed modules. The LFS editors chose to put them in a directory structure based on the Major.Minor version of Perl (&perl-version-min;) which allows upgrading Perl to newer Patch levels (&perl-version;) without the need to reinstall all of the modules again. Compile the package: make To test the results (approximately 11 SBU), issue: make test Install the package and clean up: make install unset BUILD_ZLIB BUILD_BZIP2 Contents of Perl Installed programs Installed libraries Installed directory corelist, cpan, enc2xs, encguess, h2ph, h2xs, instmodsh, json_pp, libnetcfg, perl, perl&perl-version; (hard link to perl), perlbug, perldoc, perlivp, perlthanks (hard link to perlbug), piconv, pl2pm, pod2html, pod2man, pod2text, pod2usage, podchecker, podselect, prove, ptar, ptardiff, ptargrep, shasum, splain, xsubpp, and zipdetails Many which cannot all be listed here /usr/lib/perl5 Short Descriptions corelist A commandline frontend to Module::CoreList corelist cpan Interact with the Comprehensive Perl Archive Network (CPAN) from the command line cpan enc2xs Builds a Perl extension for the Encode module from either Unicode Character Mappings or Tcl Encoding Files enc2xs encguess Guess the encoding type of one or several files encguess h2ph Converts .h C header files to .ph Perl header files h2ph h2xs Converts .h C header files to Perl extensions h2xs instmodsh Shell script for examining installed Perl modules, and can create a tarball from an installed module instmodsh json_pp Converts data between certain input and output formats json_pp libnetcfg Can be used to configure the libnet Perl module libnetcfg perl Combines some of the best features of C, sed, awk and sh into a single swiss-army language perl perl&perl-version; A hard link to perl perl&perl-version; perlbug Used to generate bug reports about Perl, or the modules that come with it, and mail them perlbug perldoc Displays a piece of documentation in pod format that is embedded in the Perl installation tree or in a Perl script perldoc perlivp The Perl Installation Verification Procedure; it can be used to verify that Perl and its libraries have been installed correctly perlivp perlthanks Used to generate thank you messages to mail to the Perl developers perlthanks piconv A Perl version of the character encoding converter iconv piconv pl2pm A rough tool for converting Perl4 .pl files to Perl5 .pm modules pl2pm pod2html Converts files from pod format to HTML format pod2html pod2man Converts pod data to formatted *roff input pod2man pod2text Converts pod data to formatted ASCII text pod2text pod2usage Prints usage messages from embedded pod docs in files pod2usage podchecker Checks the syntax of pod format documentation files podchecker podselect Displays selected sections of pod documentation podselect prove Command line tool for running tests against the Test::Harness module prove ptar A tar-like program written in Perl ptar ptardiff A Perl program that compares an extracted archive with an unextracted one ptardiff ptargrep A Perl program that applies pattern matching to the contents of files in a tar archive ptargrep shasum Prints or checks SHA checksums shasum splain Is used to force verbose warning diagnostics in Perl splain xsubpp Converts Perl XS code into C code xsubpp zipdetails Displays details about the internal structure of a Zip file zipdetails