[3be4d97] | 1 | <sect1 id="ch-system-perl" xreflabel="Perl">
|
---|
[793c2f7] | 2 | <title>Installing Perl-&perl-version;</title>
|
---|
[576e206] | 3 | <?dbhtml filename="perl.html" dir="chapter06"?>
|
---|
[6370fa6] | 4 |
|
---|
[5888299] | 5 | <para>The Perl package contains the Practical Extraction and Report Language.</para>
|
---|
| 6 |
|
---|
[69276a94] | 7 | <screen>&buildtime; &perl-time;
|
---|
| 8 | &diskspace; &perl-compsize;</screen>
|
---|
[3554fa3a] | 9 |
|
---|
[5888299] | 10 | <literallayout>Official download location for Perl (&perl-version;):
|
---|
| 11 | <ulink url="http://www.perl.com/"/></literallayout>
|
---|
| 12 |
|
---|
[d0dfce4] | 13 | &aa-perl-dep;
|
---|
[73aedd1d] | 14 |
|
---|
| 15 | <sect2><title> </title><para> </para></sect2>
|
---|
| 16 |
|
---|
| 17 | <sect2>
|
---|
| 18 | <title>Installation of Perl</title>
|
---|
| 19 |
|
---|
[4248b0e] | 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>
|
---|
[73aedd1d] | 24 |
|
---|
[5a4b3da] | 25 | <screen><userinput>./configure.gnu --prefix=/usr -Dpager="/bin/less -isR"</userinput></screen>
|
---|
[73aedd1d] | 26 |
|
---|
[bcd0ce7] | 27 | <para>The meaning of the configure option:</para>
|
---|
[05073f6] | 28 |
|
---|
| 29 | <itemizedlist>
|
---|
| 30 | <listitem><para><userinput>-Dpager="/bin/less -isR"</userinput>: This corrects
|
---|
[bcd0ce7] | 31 | an error in the perldoc code with the invocation of the less
|
---|
| 32 | program.</para></listitem>
|
---|
[05073f6] | 33 | </itemizedlist>
|
---|
[5a4b3da] | 34 |
|
---|
[73aedd1d] | 35 | <para>Compile the package:</para>
|
---|
| 36 |
|
---|
| 37 | <screen><userinput>make</userinput></screen>
|
---|
| 38 |
|
---|
[8a5f906] | 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>
|
---|
[73aedd1d] | 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>
|
---|
[6370fa6] | 54 |
|
---|
[5888299] | 55 | &aa-perl-shortdesc;
|
---|
| 56 | &aa-perl-desc;
|
---|
| 57 |
|
---|
[6370fa6] | 58 | </sect1>
|
---|
| 59 |
|
---|