[7152faa] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[fcc02767] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-tools-perl" role="wrap">
|
---|
| 9 | <?dbhtml filename="perl.html"?>
|
---|
| 10 |
|
---|
| 11 | <sect1info condition="script">
|
---|
| 12 | <productname>perl</productname>
|
---|
| 13 | <productnumber>&perl-version;</productnumber>
|
---|
| 14 | <address>&perl-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
| 17 | <title>Perl-&perl-version;</title>
|
---|
| 18 |
|
---|
| 19 | <indexterm zone="ch-tools-perl">
|
---|
| 20 | <primary sortas="a-Perl">Perl</primary>
|
---|
| 21 | <secondary>tools</secondary>
|
---|
| 22 | </indexterm>
|
---|
| 23 |
|
---|
| 24 | <sect2 role="package">
|
---|
| 25 | <title/>
|
---|
| 26 |
|
---|
| 27 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 28 | href="../chapter08/perl.xml"
|
---|
| 29 | xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
|
---|
| 30 |
|
---|
| 31 | <segmentedlist>
|
---|
| 32 | <segtitle>&buildtime;</segtitle>
|
---|
| 33 | <segtitle>&diskspace;</segtitle>
|
---|
| 34 |
|
---|
| 35 | <seglistitem>
|
---|
[fb386e0] | 36 | <seg>&perl-tmp-sbu;</seg>
|
---|
| 37 | <seg>&perl-tmp-du;</seg>
|
---|
[fcc02767] | 38 | </seglistitem>
|
---|
| 39 | </segmentedlist>
|
---|
| 40 |
|
---|
| 41 | </sect2>
|
---|
| 42 |
|
---|
| 43 | <sect2 role="installation">
|
---|
| 44 | <title>Installation of Perl</title>
|
---|
| 45 |
|
---|
| 46 | <para>Prepare Perl for compilation:</para>
|
---|
| 47 |
|
---|
[e91edad] | 48 | <screen><userinput remap="configure">sh Configure -des \
|
---|
| 49 | -D prefix=/usr \
|
---|
| 50 | -D vendorprefix=/usr \
|
---|
| 51 | -D useshrplib \
|
---|
| 52 | -D privlib=/usr/lib/perl5/&perl-version-min;/core_perl \
|
---|
| 53 | -D archlib=/usr/lib/perl5/&perl-version-min;/core_perl \
|
---|
| 54 | -D sitelib=/usr/lib/perl5/&perl-version-min;/site_perl \
|
---|
| 55 | -D sitearch=/usr/lib/perl5/&perl-version-min;/site_perl \
|
---|
| 56 | -D vendorlib=/usr/lib/perl5/&perl-version-min;/vendor_perl \
|
---|
| 57 | -D vendorarch=/usr/lib/perl5/&perl-version-min;/vendor_perl</userinput></screen>
|
---|
[fcc02767] | 58 |
|
---|
| 59 | <variablelist>
|
---|
[6c51e5ce] | 60 | <title>The meaning of the Configure options:</title>
|
---|
| 61 |
|
---|
[fcc02767] | 62 | <varlistentry>
|
---|
| 63 | <term><parameter>-des</parameter></term>
|
---|
| 64 | <listitem>
|
---|
[2c8fdfc] | 65 | <para>This is a combination of three options: -d uses defaults for
|
---|
[fcc02767] | 66 | all items; -e ensures completion of all tasks; -s silences
|
---|
| 67 | non-essential output.</para>
|
---|
| 68 | </listitem>
|
---|
| 69 | </varlistentry>
|
---|
| 70 |
|
---|
[6c51e5ce] | 71 | <varlistentry>
|
---|
[e91edad] | 72 | <term><parameter>-D vendorprefix=/usr</parameter></term>
|
---|
[6c51e5ce] | 73 | <listitem>
|
---|
| 74 | <para>This ensures <command>perl</command> knows how to
|
---|
| 75 | tell packages where they should install their Perl modules.</para>
|
---|
| 76 | </listitem>
|
---|
| 77 | </varlistentry>
|
---|
| 78 |
|
---|
| 79 | <varlistentry>
|
---|
[e91edad] | 80 | <term><parameter>-D useshrplib</parameter></term>
|
---|
[6c51e5ce] | 81 | <listitem>
|
---|
| 82 | <para>Build <systemitem class='library'>libperl</systemitem>
|
---|
| 83 | needed by some Perl modules as a shared library, instead of
|
---|
| 84 | a static library.</para>
|
---|
| 85 | </listitem>
|
---|
| 86 | </varlistentry>
|
---|
| 87 |
|
---|
| 88 | <varlistentry>
|
---|
[e91edad] | 89 | <term><parameter>-D privlib,-D archlib,-D sitelib,...</parameter></term>
|
---|
[6c51e5ce] | 90 | <listitem>
|
---|
| 91 | <para>These settings define where Perl looks for installed
|
---|
| 92 | modules. The LFS editors chose to put them in a directory structure
|
---|
| 93 | based on the MAJOR.MINOR version of Perl (&perl-version-min;) which
|
---|
| 94 | allows upgrading Perl to newer patch levels (the patch level is
|
---|
| 95 | the last dot separated part in the full version string like
|
---|
| 96 | &perl-version;) without reinstalling all of the modules.</para>
|
---|
| 97 | </listitem>
|
---|
| 98 | </varlistentry>
|
---|
| 99 |
|
---|
[fcc02767] | 100 | </variablelist>
|
---|
| 101 |
|
---|
[7136fe5] | 102 | <para>Compile the package:</para>
|
---|
[fcc02767] | 103 |
|
---|
| 104 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 105 |
|
---|
[7136fe5] | 106 | <para>Install the package:</para>
|
---|
| 107 |
|
---|
[fcc02767] | 108 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
| 109 |
|
---|
| 110 | </sect2>
|
---|
| 111 |
|
---|
| 112 | <sect2 role="content">
|
---|
| 113 | <title/>
|
---|
| 114 |
|
---|
[aefc822] | 115 | <para>Details on this package are located in <xref linkend="contents-perl" role="."/></para>
|
---|
[fcc02767] | 116 |
|
---|
| 117 | </sect2>
|
---|
| 118 |
|
---|
| 119 | </sect1>
|
---|