perl.xml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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>Prepare Perl for compilation:</para>
  14. <screen><userinput>./configure.gnu --prefix=/usr -Dpager="/bin/less -isR"</userinput></screen>
  15. <para>If you want more control over the way Perl sets itself up to be
  16. built, you can run the interactive <command>Configure</command> script
  17. instead and modify the way Perl is built. If you think you can live with the
  18. (sensible) defaults Perl auto-detects, then just use the command listed
  19. above.</para>
  20. <para>The meaning of the configure option:</para>
  21. <itemizedlist>
  22. <listitem><para><userinput>-Dpager="/bin/less -isR"</userinput>: This corrects
  23. an error in the perldoc code with the invocation of the less
  24. program.</para></listitem>
  25. </itemizedlist>
  26. <para>Compile the package:</para>
  27. <screen><userinput>make</userinput></screen>
  28. <para>This package has a test suite available which can perform a number of
  29. checks to ensure it built correctly. Should you choose to run it, you first
  30. have to create a basic <filename>/etc/hosts</filename> file, needed by a
  31. couple of tests to resolve the name <emphasis>localhost</emphasis>:</para>
  32. <screen><userinput>echo "127.0.0.1 localhost $(hostname)" &gt; /etc/hosts</userinput></screen>
  33. <para>Now run the tests, if you wish:</para>
  34. <screen><userinput>make test</userinput></screen>
  35. <para>And install the package:</para>
  36. <screen><userinput>make install</userinput></screen>
  37. </sect2>
  38. &aa-perl-shortdesc;
  39. &aa-perl-desc;
  40. </sect1>