[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[1770019] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[673b0d8] | 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
[3e36a78] | 4 | <!ENTITY % patches-entities SYSTEM "../patches.ent">
|
---|
[673b0d8] | 5 | %general-entities;
|
---|
[3e36a78] | 6 | %patches-entities;
|
---|
[673b0d8] | 7 | ]>
|
---|
[9652249] | 8 | <sect1 id="ch-tools-perl" role="wrap">
|
---|
[673b0d8] | 9 | <title>Perl-&perl-version;</title>
|
---|
| 10 | <?dbhtml filename="perl.html"?>
|
---|
[bc82645e] | 11 |
|
---|
[81fd230] | 12 | <indexterm zone="ch-tools-perl">
|
---|
| 13 | <primary sortas="a-Perl">Perl</primary>
|
---|
| 14 | <secondary>tools</secondary></indexterm>
|
---|
| 15 |
|
---|
[9652249] | 16 | <sect2 role="package"><title/>
|
---|
[81fd230] | 17 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/perl.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
|
---|
[673b0d8] | 18 |
|
---|
[9652249] | 19 | <segmentedlist>
|
---|
| 20 | <segtitle>&buildtime;</segtitle>
|
---|
| 21 | <segtitle>&diskspace;</segtitle>
|
---|
[fad7667] | 22 | <seglistitem><seg>0.8 SBU</seg><seg>79.8 MB</seg></seglistitem>
|
---|
[9652249] | 23 | </segmentedlist>
|
---|
[673b0d8] | 24 |
|
---|
[81fd230] | 25 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/perl.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
|
---|
| 26 |
|
---|
[9652249] | 27 | </sect2>
|
---|
[f47c6b7] | 28 |
|
---|
[9652249] | 29 | <sect2 role="installation">
|
---|
[73aedd1d] | 30 | <title>Installation of Perl</title>
|
---|
| 31 |
|
---|
[81fd230] | 32 | <para>First adapt some hard-wired paths to the C library by applying
|
---|
| 33 | the following patch:</para>
|
---|
[73aedd1d] | 34 |
|
---|
[3e36a78] | 35 | <screen><userinput>patch -Np1 -i ../&perl-libc-patch;</userinput></screen>
|
---|
[fe5b13b] | 36 |
|
---|
[81fd230] | 37 | <para>Prepare Perl for compilation (make sure to get the 'IO Fcntl POSIX'
|
---|
| 38 | part of the command correct—they are all letters):</para>
|
---|
[73aedd1d] | 39 |
|
---|
[673b0d8] | 40 | <screen><userinput>./configure.gnu --prefix=/tools -Dstatic_ext='IO Fcntl POSIX'</userinput></screen>
|
---|
[73aedd1d] | 41 |
|
---|
[fc298480] | 42 | <para>The meaning of the configure options:</para>
|
---|
[81fd230] | 43 |
|
---|
| 44 | <variablelist>
|
---|
| 45 | <varlistentry>
|
---|
| 46 | <term><parameter>-Dstatic_ext='IO Fcntl POSIX'</parameter></term>
|
---|
| 47 | <listitem><para>This tells Perl to build the minimum set of static
|
---|
| 48 | extensions needed for installing and testing the Coreutils package in
|
---|
| 49 | the next chapter.</para></listitem>
|
---|
| 50 | </varlistentry>
|
---|
| 51 | </variablelist>
|
---|
| 52 |
|
---|
[663ecfc] | 53 | <para>Only a few of the utilities contained in this package need to be
|
---|
| 54 | built:</para>
|
---|
[73aedd1d] | 55 |
|
---|
| 56 | <screen><userinput>make perl utilities</userinput></screen>
|
---|
| 57 |
|
---|
[81fd230] | 58 | <para>Although Perl comes with a test suite, it is not recommended to
|
---|
| 59 | run it at this point. Only part of Perl was built and running
|
---|
| 60 | <userinput>make test</userinput> now will cause the rest of Perl to be
|
---|
| 61 | built as well, which is unnecessary at this point. The test suite can
|
---|
| 62 | be run in the next chapter if desired.</para>
|
---|
| 63 |
|
---|
[663ecfc] | 64 | <para>Install these tools and their libraries:</para>
|
---|
[73aedd1d] | 65 |
|
---|
[5998892] | 66 | <screen><userinput>cp -v perl pod/pod2man /tools/bin
|
---|
| 67 | mkdir -pv /tools/lib/perl5/&perl-version;
|
---|
| 68 | cp -Rv lib/* /tools/lib/perl5/&perl-version;</userinput></screen>
|
---|
[73aedd1d] | 69 |
|
---|
| 70 | </sect2>
|
---|
[bc82645e] | 71 |
|
---|
[81fd230] | 72 | <sect2 role="content"><title/>
|
---|
| 73 | <para>Details on this package are located in <xref
|
---|
| 74 | linkend="contents-perl" role="."/></para>
|
---|
| 75 | </sect2>
|
---|
| 76 |
|
---|
[bc82645e] | 77 | </sect1>
|
---|
[81fd230] | 78 |
|
---|