aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/perl.xml
blob: d6633ce75f6f48ed42cf677f98ff007a63ec07ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<sect1 id="ch-tools-perl">
<title>Installing Perl-&perl-version;</title>
<?dbhtml filename="perl.html" dir="chapter05"?>

<screen>&buildtime; &perl-time-tools;
&diskspace; &perl-compsize-tools;</screen>

&aa-perl-down;
&aa-perl-dep;

<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>

<sect2>
<title>Installation of Perl</title>

<para>First adapt some hard-wired paths to the C library:</para>

<screen><userinput>patch -Np1 -i ../&perl-libc-patch;</userinput></screen>

<para>Perl insists on using the <command>arch</command> program to find out
the machine type. Create a little script to mimic this command:</para>

<screen><userinput>echo "uname -m" &gt; /tools/bin/arch
chmod 755 /tools/bin/arch</userinput></screen>

<para>Now prepare Perl for compilation (make sure you get the 'IO Fcntl'
right, they are all letters):</para>

<screen><userinput>./configure.gnu --prefix=/tools -Dstatic_ext='IO Fcntl'</userinput></screen>

<para>The meaning of the configure option:</para>

<itemizedlist>
<listitem><para><userinput>-Dstatic_ext='IO Fcntl'</userinput>: This tells
Perl to build the minimum set of static extensions needed for running the
Coreutils test suite in the next chapter.</para></listitem>
</itemizedlist>

<para>Compile only the required tools:</para>

<screen><userinput>make perl utilities</userinput></screen>

<para>Then copy these tools and their libraries:</para>

<screen><userinput>cp perl pod/pod2man /tools/bin
mkdir -p /tools/lib/perl5/&perl-version;
cp -R lib/* /tools/lib/perl5/&perl-version;</userinput></screen>

</sect2>

<sect2><title>&nbsp;</title><para>&nbsp;</para>
<para>The details on this package are found in <xref linkend="contents-perl"/>.</para>
<para>&nbsp;</para></sect2>

</sect1>