Added a few comments here and there
[linux_from_scratch.git] / newxml / chapter05 / perl.xml
blob8ede65d320423270e54e03f5345a407b7ac74686
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3CR2//EN" "http://www.docbook.org/xml/4.3CR2/docbookx.dtd" [
3   <!ENTITY % perl-entities SYSTEM "../ent/perl.ent">
4   %perl-entities;
5 ]>
6 <sect1 id="ch05-perl">
7 <title>Installing Perl-&perl-version;</title>
8 <?dbhtml filename="perl.html"?>
10 <screen>Estimated build time:           0.8 SBU
11 Estimated required disk space:  74 MB</screen>
13 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../appendixa/perl-contents.xml"/>
16 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../appendixa/perl-deps.xml"/>
20 <sect2>
21 <title>Installation of Perl</title>
23 <para>First adapt some hard-wired paths to the C library:</para>
25 <screen><userinput>patch -Np1 -i ../perl-&perl-version;-libc-1.patch</userinput></screen>
27 <para>Now prepare Perl for compilation:</para>
29 <screen><userinput>./configure.gnu --prefix=/tools -Dstatic_ext='IO Fcntl'</userinput></screen>
31 <para>The meaning of the configure option:</para>
33 <itemizedlist>
34 <listitem><para><userinput>-Dstatic_ext='IO Fcntl'</userinput>: This tells
35 Perl to build the minimum set of static extensions needed for running the
36 Coreutils test suite in the next chapter.</para></listitem>
37 </itemizedlist>
39 <para>Compile only the required tools:</para>
41 <screen><userinput>make perl utilities</userinput></screen>
43 <para>Then copy these tools and their libraries:</para>
45 <screen><userinput>cp perl pod/pod2man /tools/bin
46 mkdir -p /tools/lib/perl5/&perl-version;
47 cp -R lib/* /tools/lib/perl5/&perl-version;</userinput></screen>
49 </sect2>
51 </sect1>