1
0

perl.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <sect1 id="ch06-perl">
  2. <title>Installing Perl-&perl-version;</title>
  3. <?dbhtml filename="perl.html" dir="chapter06"?>
  4. <screen>Estimated build time: &perl-time;
  5. Estimated required disk space: &perl-compsize;</screen>
  6. &aa-perl-shortdesc;
  7. &aa-perl-dep;
  8. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  9. <sect2>
  10. <title>Installation of Perl</title>
  11. <para>Prepare Perl for compilation:</para>
  12. <screen><userinput>./configure.gnu --prefix=/usr</userinput></screen>
  13. <para>If you want more control over the way Perl sets itself up to be
  14. built, you can run the interactive <userinput>Configure</userinput> script
  15. instead and modify the way Perl is built. If you think you can live with the
  16. (sensible) defaults Perl auto-detects, then just use the command listed
  17. above.</para>
  18. <para>Compile the package:</para>
  19. <screen><userinput>make</userinput></screen>
  20. <para>This package has a test suite available which can perform a number of
  21. checks to ensure it built correctly. Should you choose to run it, you first
  22. have to create a basic <filename>/etc/hosts</filename> file, needed by a
  23. couple of tests to resolve the name <emphasis>localhost</emphasis>:</para>
  24. <screen><userinput>echo "127.0.0.1 localhost $(hostname)" &gt; /etc/hosts</userinput></screen>
  25. <para>Now run the tests, if you wish:</para>
  26. <screen><userinput>make test</userinput></screen>
  27. <para>And install the package:</para>
  28. <screen><userinput>make install</userinput></screen>
  29. </sect2>
  30. </sect1>