Added a few comments here and there
[linux_from_scratch.git] / newxml / chapter06 / perl.xml
blob1c0169ca1fea20c410332c8017de7c47affed73f
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="ch06-perl">
7 <title>Installing Perl-&perl-version;</title>
8 <?dbhtml filename="perl.html"?>
10 <screen>Estimated build time:           2.9 SBU
11 Estimated required disk space:  143 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>Prepare Perl for compilation:</para>
25 <screen><userinput>./configure.gnu --prefix=/usr -Dpager="/bin/less -isR"</userinput></screen>
27 <para>If you want more control over the way Perl sets itself up to be
28 built, you can run the interactive <userinput>Configure</userinput> script
29 instead and modify the way Perl is built. If you think you can live with the
30 (sensible) defaults Perl auto-detects, then just use the command listed
31 above.</para>
33 <para>The meaning of the configure option:</para>
35 <itemizedlist>
36 <listitem><para><userinput>-Dpager="/bin/less -isR"</userinput>: This corrects
37 an error in the perldoc code with the invocation of the less
38 program.</para></listitem>
39 </itemizedlist>
41 <para>Compile the package:</para>
43 <screen><userinput>make</userinput></screen>
45 <para>This package has a test suite available which can perform a number of
46 checks to ensure it built correctly.  Should you choose to run it, you first
47 have to create a basic <filename>/etc/hosts</filename> file, needed by a
48 couple of tests to resolve the name <emphasis>localhost</emphasis>:</para>
50 <screen><userinput>echo "127.0.0.1 localhost $(hostname)" &gt; /etc/hosts</userinput></screen>
52 <para>Now run the tests, if you wish:</para>
54 <screen><userinput>make test</userinput></screen>
56 <para>And install the package:</para>
58 <screen><userinput>make install</userinput></screen>
60 </sect2>
62 </sect1>