[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 |
|
---|
| 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 |
|
---|
[3508ede] | 25 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 26 | href="../common/perl.xml"
|
---|
| 27 | xpointer="xpointer(//*[@os='p1'])"/>
|
---|
| 28 |
|
---|
| 29 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 30 | href="../common/perl.xml"
|
---|
| 31 | xpointer="xpointer(//*[@os='p2'])"/>
|
---|
| 32 |
|
---|
[d10818d] | 33 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 34 | href="../common/perl.xml"
|
---|
| 35 | xpointer="xpointer(//*[@os='p3'])"/>
|
---|
| 36 |
|
---|
| 37 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 38 | href="../common/perl.xml"
|
---|
| 39 | xpointer="xpointer(//*[@os='p4'])"/>
|
---|
| 40 |
|
---|
[6bef17d] | 41 | <para os="a">First adapt some hard-wired paths to the C library by applying
|
---|
| 42 | the following patch:</para>
|
---|
| 43 |
|
---|
| 44 | <screen os="b"><userinput>patch -Np1 -i ../&perl-libc-patch;</userinput></screen>
|
---|
| 45 |
|
---|
[76cf100] | 46 | <para os="c">Prepare Perl for compilation (make sure to get the 'Data/Dumper
|
---|
| 47 | Fcntl IO POSIX' part of the command correct—they are all
|
---|
| 48 | letters):</para>
|
---|
[6bef17d] | 49 |
|
---|
[85d525e] | 50 | <screen os="d"><userinput>./configure.gnu --prefix=/tools \
|
---|
| 51 | -Dstatic_ext='Data/Dumper IO Fcntl POSIX' -Dcc="gcc"</userinput></screen>
|
---|
[76cf100] | 52 |
|
---|
| 53 | <variablelist os="e">
|
---|
[6bef17d] | 54 | <title>The meaning of the configure option:</title>
|
---|
| 55 |
|
---|
| 56 | <varlistentry>
|
---|
| 57 | <term><parameter>-Dstatic_ext='Data/Dumper IO Fcntl POSIX'</parameter></term>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>This tells Perl to build the minimum set of static
|
---|
[9172172] | 60 | extensions needed for installing and testing the Glibc and
|
---|
| 61 | Coreutils packages later in this chapter.</para>
|
---|
[6bef17d] | 62 | </listitem>
|
---|
| 63 | </varlistentry>
|
---|
| 64 |
|
---|
| 65 | </variablelist>
|
---|
| 66 |
|
---|
[76cf100] | 67 | <para os="f">Now we are ready to make our perl utilities:</para>
|
---|
[6bef17d] | 68 |
|
---|
[76cf100] | 69 | <screen os="g"><userinput>make perl utilities</userinput></screen>
|
---|
[6bef17d] | 70 |
|
---|
[6c4e93e] | 71 | <para os="h">Although Perl comes with a test suite, it is not recommended
|
---|
| 72 | to run it at this point. Only part of Perl was built and running
|
---|
| 73 | <command>make test</command> now will cause the rest of Perl to be built
|
---|
| 74 | as well, which is unnecessary at this point. The test suite can be run
|
---|
| 75 | later in this chapter if desired.</para>
|
---|
[6bef17d] | 76 |
|
---|
[6c4e93e] | 77 | <para os="i">Install these tools and their libraries:</para>
|
---|
| 78 |
|
---|
| 79 | <screen os="j"><userinput>cp -v perl pod/pod2man /tools/bin
|
---|
[94e6142] | 80 | install -dv /tools/lib/perl5/&perl-version;
|
---|
| 81 | cp -Rv lib/* /tools/lib/perl5/&perl-version;</userinput></screen>
|
---|
[6bef17d] | 82 |
|
---|
[6c4e93e] | 83 | <para os="k">Finally, create a necessary symlink:</para>
|
---|
[de1676e] | 84 |
|
---|
[6c4e93e] | 85 | <screen os="l"><userinput>ln -sv /tools/bin/perl /usr/bin</userinput></screen>
|
---|
[de1676e] | 86 |
|
---|
[6bef17d] | 87 | </sect2>
|
---|
| 88 |
|
---|
| 89 | <sect2 role="content">
|
---|
| 90 | <title/>
|
---|
| 91 |
|
---|
| 92 | <para>Details on this package are located in <xref
|
---|
| 93 | linkend="contents-perl" role="."/></para>
|
---|
| 94 |
|
---|
| 95 | </sect2>
|
---|
| 96 |
|
---|
| 97 | </sect1>
|
---|