2004-01-27 22:29:49 +00:00
|
|
|
<sect1 id="ch-system-perl" xreflabel="Perl">
|
2001-07-23 19:23:43 +01:00
|
|
|
<title>Installing Perl-&perl-version;</title>
|
2001-09-26 01:24:04 +01:00
|
|
|
<?dbhtml filename="perl.html" dir="chapter06"?>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2004-01-12 23:23:50 +00:00
|
|
|
<para>The Perl package contains the Practical Extraction and Report Language.</para>
|
|
|
|
|
2004-01-27 22:27:44 +00:00
|
|
|
<screen>&buildtime; &perl-time;
|
|
|
|
&diskspace; &perl-compsize;</screen>
|
2001-07-17 19:51:18 +01:00
|
|
|
|
2004-01-12 23:23:50 +00:00
|
|
|
<literallayout>Official download location for Perl (&perl-version;):
|
|
|
|
<ulink url="http://www.perl.com/"/></literallayout>
|
|
|
|
|
2003-11-15 16:07:18 +00:00
|
|
|
&aa-perl-dep;
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<sect2><title> </title><para> </para></sect2>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Installation of Perl</title>
|
|
|
|
|
2004-02-04 22:22:26 +00:00
|
|
|
<para>If you want full control over the way Perl is set up, you can run the
|
|
|
|
interactive <command>Configure</command> script and hand-pick the way this
|
|
|
|
package is built. If, however, you guess you can live with the (sensible)
|
|
|
|
defaults it auto-detects, then prepare Perl for compilation with:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2003-11-17 08:32:34 +00:00
|
|
|
<screen><userinput>./configure.gnu --prefix=/usr -Dpager="/bin/less -isR"</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2003-11-20 00:45:59 +00:00
|
|
|
<para>The meaning of the configure option:</para>
|
2003-11-18 03:02:35 +00:00
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem><para><userinput>-Dpager="/bin/less -isR"</userinput>: This corrects
|
2003-11-20 00:45:59 +00:00
|
|
|
an error in the perldoc code with the invocation of the less
|
|
|
|
program.</para></listitem>
|
2003-11-18 03:02:35 +00:00
|
|
|
</itemizedlist>
|
2003-11-17 08:32:34 +00:00
|
|
|
|
2003-11-01 22:31:50 +00:00
|
|
|
<para>Compile the package:</para>
|
|
|
|
|
|
|
|
<screen><userinput>make</userinput></screen>
|
|
|
|
|
2004-02-07 10:48:55 +00:00
|
|
|
<para>If you wish to run the test suite, you first have to create a basic
|
|
|
|
<filename>/etc/hosts</filename> file, which is needed by a couple of tests to
|
|
|
|
resolve the name <emphasis>localhost</emphasis>:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<screen><userinput>echo "127.0.0.1 localhost $(hostname)" > /etc/hosts</userinput></screen>
|
|
|
|
|
|
|
|
<para>Now run the tests, if you wish:</para>
|
|
|
|
|
|
|
|
<screen><userinput>make test</userinput></screen>
|
|
|
|
|
|
|
|
<para>And install the package:</para>
|
|
|
|
|
|
|
|
<screen><userinput>make install</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2004-01-12 23:23:50 +00:00
|
|
|
&aa-perl-shortdesc;
|
|
|
|
&aa-perl-desc;
|
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
</sect1>
|
|
|
|
|