source: chapter07/perl.xml

trunk
Last change on this file was 7152faa, checked in by Pierre Labastie <pierre.labastie@…>, 3 months ago

Change all xml files to utf-8 encoding

  • Property mode set to 100644
File size: 3.8 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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>
36 <seg>&perl-tmp-sbu;</seg>
37 <seg>&perl-tmp-du;</seg>
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
48 <screen><userinput remap="configure">sh Configure -des \
49 -Dprefix=/usr \
50 -Dvendorprefix=/usr \
51 -Duseshrplib \
52 -Dprivlib=/usr/lib/perl5/&perl-version-min;/core_perl \
53 -Darchlib=/usr/lib/perl5/&perl-version-min;/core_perl \
54 -Dsitelib=/usr/lib/perl5/&perl-version-min;/site_perl \
55 -Dsitearch=/usr/lib/perl5/&perl-version-min;/site_perl \
56 -Dvendorlib=/usr/lib/perl5/&perl-version-min;/vendor_perl \
57 -Dvendorarch=/usr/lib/perl5/&perl-version-min;/vendor_perl</userinput></screen>
58
59 <variablelist>
60 <title>The meaning of the Configure options:</title>
61
62 <varlistentry>
63 <term><parameter>-des</parameter></term>
64 <listitem>
65 <para>This is a combination of three options: -d uses defaults for
66 all items; -e ensures completion of all tasks; -s silences
67 non-essential output.</para>
68 </listitem>
69 </varlistentry>
70
71 <varlistentry>
72 <term><parameter>-Dvendorprefix=/usr</parameter></term>
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>
80 <term><parameter>-Duseshrplib</parameter></term>
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>
89 <term><parameter>-Dprivlib,-Darchlib,-Dsitelib,...</parameter></term>
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
100 </variablelist>
101
102 <para>Compile the package:</para>
103
104<screen><userinput remap="make">make</userinput></screen>
105
106 <para>Install the package:</para>
107
108<screen><userinput remap="install">make install</userinput></screen>
109
110 </sect2>
111
112 <sect2 role="content">
113 <title/>
114
115 <para>Details on this package are located in <xref linkend="contents-perl" role="."/></para>
116
117 </sect2>
118
119</sect1>
Note: See TracBrowser for help on using the repository browser.