perl.xml 1.9 KB

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