perl.xml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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>If you wish to run the test suite, you first have to create a basic
  27. <filename>/etc/hosts</filename> file, which is needed by a couple of tests to
  28. resolve the name <emphasis>localhost</emphasis>:</para>
  29. <screen><userinput>echo "127.0.0.1 localhost $(hostname)" &gt; /etc/hosts</userinput></screen>
  30. <para>Now run the tests, if you wish:</para>
  31. <screen><userinput>make test</userinput></screen>
  32. <para>And install the package:</para>
  33. <screen><userinput>make install</userinput></screen>
  34. </sect2>
  35. &aa-perl-shortdesc;
  36. &aa-perl-desc;
  37. </sect1>