%general-entities; ]> Perl-&perl-version; Perl tools <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/perl.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/> <segmentedlist> <segtitle>&buildtime;</segtitle> <segtitle>&diskspace;</segtitle> <seglistitem><seg>0.8 SBU</seg><seg>74 MB</seg></seglistitem> </segmentedlist> <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/perl.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/> </sect2> <sect2 role="installation"> <title>Installation of Perl First adapt some hard-wired paths to the C library by applying the following patch: patch -Np1 -i ../perl-&perl-version;-libc-1.patch Prepare Perl for compilation (make sure to get the 'IO Fcntl POSIX' part of the command correct—they are all letters): ./configure.gnu --prefix=/tools -Dstatic_ext='IO Fcntl POSIX' The meaning of the configure option: -Dstatic_ext='IO Fcntl POSIX' This tells Perl to build the minimum set of static extensions needed for installing and testing the Coreutils package in the next chapter. Compile only the required tools: make perl utilities Although Perl comes with a test suite, it is not recommended to run it at this point. Only part of Perl was built and running make test now will cause the rest of Perl to be built as well, which is unnecessary at this point. The test suite can be run in the next chapter if desired. Copy these tools and their libraries: cp perl pod/pod2man /tools/bin mkdir -p /tools/lib/perl5/&perl-version; cp -R lib/* /tools/lib/perl5/&perl-version; <para>Details on this package are located in <xref linkend="contents-perl" role="."/></para> </sect2> </sect1>