[93ad1c75] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-system-temp-perl" role="wrap">
|
---|
| 9 | <?dbhtml filename="temp-perl.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Temporary Perl-&perl-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-system-temp-perl">
|
---|
| 14 | <primary sortas="a-Perl">Perl</primary>
|
---|
| 15 | <secondary>temporary tools</secondary>
|
---|
| 16 | </indexterm>
|
---|
| 17 |
|
---|
| 18 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 19 | href="../../final-system/common/perl.xml"
|
---|
| 20 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
| 21 |
|
---|
| 22 | <sect2 role="installation">
|
---|
| 23 | <title>Installation of Perl</title>
|
---|
| 24 |
|
---|
| 25 | <para os="a">First adapt some hard-wired paths to the C library by applying
|
---|
| 26 | the following patch:</para>
|
---|
| 27 |
|
---|
| 28 | <screen os="b"><userinput>patch -Np1 -i ../&perl-libc-patch;</userinput></screen>
|
---|
| 29 |
|
---|
[e1beb751] | 30 | <para os="c">Prepare Perl for compilation (make sure to get the 'Data/Dumper
|
---|
| 31 | Fcntl IO POSIX' part of the command correct—they are all
|
---|
| 32 | letters):</para>
|
---|
[93ad1c75] | 33 |
|
---|
[e1beb751] | 34 | <screen os="d"><userinput>./configure.gnu --prefix=/tools -Dstatic_ext='Data/Dumper IO Fcntl POSIX' -Dcc="gcc"</userinput></screen>
|
---|
| 35 |
|
---|
| 36 | <variablelist os="e">
|
---|
[93ad1c75] | 37 | <title>The meaning of the configure option:</title>
|
---|
| 38 |
|
---|
| 39 | <varlistentry>
|
---|
| 40 | <term><parameter>-Dstatic_ext='Data/Dumper IO Fcntl POSIX'</parameter></term>
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>This tells Perl to build the minimum set of static
|
---|
| 43 | extensions needed for installing and testing the Coreutils
|
---|
[e1beb751] | 44 | package later in this chapter.</para>
|
---|
[93ad1c75] | 45 | </listitem>
|
---|
| 46 | </varlistentry>
|
---|
| 47 |
|
---|
| 48 | </variablelist>
|
---|
| 49 |
|
---|
[e1beb751] | 50 | <para os="f">Now we are ready to make our perl utilities:</para>
|
---|
[93ad1c75] | 51 |
|
---|
[e1beb751] | 52 | <screen os="g"><userinput>make perl utilities</userinput></screen>
|
---|
[93ad1c75] | 53 |
|
---|
[e1beb751] | 54 | <para os="h">Install these tools and their libraries:</para>
|
---|
[93ad1c75] | 55 |
|
---|
[dd9906e] | 56 | <screen os="i"><userinput>cp -v perl pod/pod2man /tools/bin
|
---|
| 57 | install -dv /tools/lib/perl5/&perl-version;
|
---|
| 58 | cp -Rv lib/* /tools/lib/perl5/&perl-version;</userinput></screen>
|
---|
[93ad1c75] | 59 |
|
---|
[62c1c5dd] | 60 | <para os="j">Finally, create a necessary symlink:</para>
|
---|
| 61 |
|
---|
[dd9906e] | 62 | <screen os="k"><userinput>ln -sv /tools/bin/perl /usr/bin</userinput></screen>
|
---|
[62c1c5dd] | 63 |
|
---|
[93ad1c75] | 64 | </sect2>
|
---|
| 65 |
|
---|
| 66 | <sect2 role="content">
|
---|
| 67 | <title/>
|
---|
| 68 |
|
---|
| 69 | <para>Details on this package are located in <xref
|
---|
| 70 | linkend="contents-perl" role="."/></para>
|
---|
| 71 |
|
---|
| 72 | </sect2>
|
---|
| 73 |
|
---|
| 74 | </sect1>
|
---|