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>If you wish to run the test suite, you first have to create a basic
|
---|
40 | <filename>/etc/hosts</filename> file, which is needed by a couple of tests to
|
---|
41 | resolve the name <emphasis>localhost</emphasis>:</para>
|
---|
42 |
|
---|
43 | <screen><userinput>echo "127.0.0.1 localhost $(hostname)" > /etc/hosts</userinput></screen>
|
---|
44 |
|
---|
45 | <para>Now run the tests, if you wish:</para>
|
---|
46 |
|
---|
47 | <screen><userinput>make test</userinput></screen>
|
---|
48 |
|
---|
49 | <para>And install the package:</para>
|
---|
50 |
|
---|
51 | <screen><userinput>make install</userinput></screen>
|
---|
52 |
|
---|
53 | </sect2>
|
---|
54 |
|
---|
55 | &aa-perl-shortdesc;
|
---|
56 | &aa-perl-desc;
|
---|
57 |
|
---|
58 | </sect1>
|
---|
59 |
|
---|