1 | <sect1 id="ch-system-perl" xreflabel="Perl">
|
---|
2 | <title>Installing Perl-&perl-version;</title>
|
---|
3 | <?dbhtml filename="perl.html" dir="chapter06"?>
|
---|
4 |
|
---|
5 | <para>The Perl package contains the Practical Extraction and Report Language.</para>
|
---|
6 |
|
---|
7 | <screen>&buildtime; &perl-time;
|
---|
8 | &diskspace; &perl-compsize;</screen>
|
---|
9 |
|
---|
10 | <literallayout>Official download location for Perl (&perl-version;):
|
---|
11 | <ulink url="http://www.perl.com/"/></literallayout>
|
---|
12 |
|
---|
13 | &aa-perl-dep;
|
---|
14 |
|
---|
15 | <sect2><title> </title><para> </para></sect2>
|
---|
16 |
|
---|
17 | <sect2>
|
---|
18 | <title>Installation of Perl</title>
|
---|
19 |
|
---|
20 | <para>If you want full control over the way Perl is set up, you can run the
|
---|
21 | interactive <command>Configure</command> script and hand-pick the way this
|
---|
22 | package is built. If, however, you guess you can live with the (sensible)
|
---|
23 | defaults it auto-detects, then prepare Perl for compilation with:</para>
|
---|
24 |
|
---|
25 | <screen><userinput>./configure.gnu --prefix=/usr -Dpager="/bin/less -isR"</userinput></screen>
|
---|
26 |
|
---|
27 | <para>The meaning of the configure option:</para>
|
---|
28 |
|
---|
29 | <itemizedlist>
|
---|
30 | <listitem><para><userinput>-Dpager="/bin/less -isR"</userinput>: This corrects
|
---|
31 | an error in the perldoc code with the invocation of the less
|
---|
32 | program.</para></listitem>
|
---|
33 | </itemizedlist>
|
---|
34 |
|
---|
35 | <para>Compile the package:</para>
|
---|
36 |
|
---|
37 | <screen><userinput>make</userinput></screen>
|
---|
38 |
|
---|
39 | <para>This package has a test suite available which can perform a number of
|
---|
40 | checks to ensure it built correctly. Should you choose to run it, you first
|
---|
41 | have to create a basic <filename>/etc/hosts</filename> file, needed by a
|
---|
42 | couple of tests to resolve the name <emphasis>localhost</emphasis>:</para>
|
---|
43 |
|
---|
44 | <screen><userinput>echo "127.0.0.1 localhost $(hostname)" > /etc/hosts</userinput></screen>
|
---|
45 |
|
---|
46 | <para>Now run the tests, if you wish:</para>
|
---|
47 |
|
---|
48 | <screen><userinput>make test</userinput></screen>
|
---|
49 |
|
---|
50 | <para>And install the package:</para>
|
---|
51 |
|
---|
52 | <screen><userinput>make install</userinput></screen>
|
---|
53 |
|
---|
54 | </sect2>
|
---|
55 |
|
---|
56 | &aa-perl-shortdesc;
|
---|
57 | &aa-perl-desc;
|
---|
58 |
|
---|
59 | </sect1>
|
---|
60 |
|
---|