[6bef17d] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[aa18ac0] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[6bef17d] | 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 |
|
---|
[dabbced] | 18 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[6bef17d] | 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 |
|
---|
[f698c15d] | 30 | <para os="s1">Change a hardcoded path from
|
---|
| 31 | <filename class="directory">/usr/include</filename> to
|
---|
| 32 | <filename class="directory">/tools/include</filename>:</para>
|
---|
[6bef17d] | 33 |
|
---|
[c5c8ee8] | 34 | <screen os="s2"><userinput>sed -i 's@/usr/include@/tools/include@g' ext/Errno/Errno_pm.PL</userinput></screen>
|
---|
| 35 |
|
---|
[1532fcd] | 36 | <para os="c">Prepare Temporary Perl for compilation:</para>
|
---|
[c5c8ee8] | 37 |
|
---|
| 38 | <screen os="d"><userinput>./configure.gnu --prefix=/tools -Dcc="gcc"</userinput></screen>
|
---|
[76cf100] | 39 |
|
---|
| 40 | <variablelist os="e">
|
---|
[6bef17d] | 41 | <title>The meaning of the configure option:</title>
|
---|
| 42 |
|
---|
| 43 | <varlistentry>
|
---|
[4e1dce4] | 44 | <term><parameter>-Dcc="gcc"</parameter></term>
|
---|
[6bef17d] | 45 | <listitem>
|
---|
[4e1dce4] | 46 | <para>Tells Perl to use <command>gcc</command> instead of the
|
---|
| 47 | default <command>cc</command>.</para>
|
---|
[6bef17d] | 48 | </listitem>
|
---|
| 49 | </varlistentry>
|
---|
| 50 |
|
---|
| 51 | </variablelist>
|
---|
| 52 |
|
---|
[4e1dce4] | 53 | <para os="f">Compile the package:</para>
|
---|
[6bef17d] | 54 |
|
---|
[369ec62] | 55 | <screen os="g"><userinput>make</userinput></screen>
|
---|
[6bef17d] | 56 |
|
---|
[6c4e93e] | 57 | <para os="h">Although Perl comes with a test suite, it is not recommended
|
---|
[4e1dce4] | 58 | to run it at this point, as this Perl installation is only temporary. The
|
---|
| 59 | test suite can be run later in this chapter if desired.</para>
|
---|
[6bef17d] | 60 |
|
---|
[4e1dce4] | 61 | <para os="i">Install the package:</para>
|
---|
[6c4e93e] | 62 |
|
---|
[369ec62] | 63 | <screen os="j"><userinput>make install</userinput></screen>
|
---|
[6bef17d] | 64 |
|
---|
| 65 | </sect2>
|
---|
| 66 |
|
---|
| 67 | <sect2 role="content">
|
---|
| 68 | <title/>
|
---|
| 69 |
|
---|
| 70 | <para>Details on this package are located in <xref
|
---|
| 71 | linkend="contents-perl" role="."/></para>
|
---|
| 72 |
|
---|
| 73 | </sect2>
|
---|
| 74 |
|
---|
| 75 | </sect1>
|
---|