lfs/chapter05/perl.xml
Alex Gronenwoud 5888299528 Moving stuff from appendix A to chapter 6.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3161 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2004-01-12 23:23:50 +00:00

50 lines
1.4 KiB
XML

<sect1 id="ch05-perl">
<title>Installing Perl-&perl-version;</title>
<?dbhtml filename="perl.html" dir="chapter05"?>
<screen>Estimated build time: &perl-time-tools;
Estimated required disk space: &perl-compsize-tools;</screen>
&aa-perl-down;
&aa-perl-dep;
<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
<sect2>
<title>Installation of Perl</title>
<para>First adapt some hard-wired paths to the C library:</para>
<screen><userinput>patch -Np1 -i ../&perl-libc-patch;</userinput></screen>
<para>Now prepare Perl for compilation:</para>
<screen><userinput>./configure.gnu --prefix=/tools -Dstatic_ext='IO Fcntl'</userinput></screen>
<para>The meaning of the configure option:</para>
<itemizedlist>
<listitem><para><userinput>-Dstatic_ext='IO Fcntl'</userinput>: This tells
Perl to build the minimum set of static extensions needed for running the
Coreutils test suite in the next chapter.</para></listitem>
</itemizedlist>
<para>Compile only the required tools:</para>
<screen><userinput>make perl utilities</userinput></screen>
<para>Then copy these tools and their libraries:</para>
<screen><userinput>cp perl pod/pod2man /tools/bin
mkdir -p /tools/lib/perl5/&perl-version;
cp -R lib/* /tools/lib/perl5/&perl-version;</userinput></screen>
</sect2>
<sect2><title>&nbsp;</title><para>&nbsp;</para>
<para>The details on this package are found in <xref linkend="contents-perl"/>.</para>
<para>&nbsp;</para></sect2>
</sect1>