perl.xml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-tools-perl" role="wrap">
  8. <?dbhtml filename="perl.html"?>
  9. <title>Perl-&perl-version;</title>
  10. <indexterm zone="ch-tools-perl">
  11. <primary sortas="a-Perl">Perl</primary>
  12. <secondary>tools</secondary>
  13. </indexterm>
  14. <sect2 role="package">
  15. <title/>
  16. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  17. href="../chapter06/perl.xml"
  18. xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
  19. <segmentedlist>
  20. <segtitle>&buildtime;</segtitle>
  21. <segtitle>&diskspace;</segtitle>
  22. <seglistitem>
  23. <seg>0.8 SBU</seg>
  24. <seg>79.8 MB</seg>
  25. </seglistitem>
  26. </segmentedlist>
  27. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  28. href="../chapter06/perl.xml"
  29. xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Perl</title>
  33. <para>First adapt some hard-wired paths to the C library by applying
  34. the following patch:</para>
  35. <screen><userinput>patch -Np1 -i ../&perl-libc-patch;</userinput></screen>
  36. <para>Prepare Perl for compilation (make sure to get the
  37. 'Data/Dumper Fcntl IO POSIX' part of the command correct&mdash;they are all
  38. letters):</para>
  39. <screen><userinput>./configure.gnu --prefix=/tools -Dstatic_ext='Data/Dumper Fcntl IO POSIX'</userinput></screen>
  40. <variablelist>
  41. <title>The meaning of the configure options:</title>
  42. <varlistentry>
  43. <term><parameter>-Dstatic_ext='Data/Dumper Fcntl IO POSIX'</parameter></term>
  44. <listitem>
  45. <para>This tells Perl to build the minimum set of static extensions
  46. needed for installing and testing the Coreutils package in the next
  47. chapter.</para>
  48. </listitem>
  49. </varlistentry>
  50. </variablelist>
  51. <para>Only a few of the utilities contained in this package need to be
  52. built:</para>
  53. <screen><userinput>make perl utilities</userinput></screen>
  54. <para>Although Perl comes with a test suite, it is not recommended to
  55. run it at this point. Only part of Perl was built and running
  56. <userinput>make test</userinput> now will cause the rest of Perl to be
  57. built as well, which is unnecessary at this point. The test suite can
  58. be run in the next chapter if desired.</para>
  59. <para>Install these tools and their libraries:</para>
  60. <screen><userinput>cp -v perl pod/pod2man /tools/bin
  61. mkdir -pv /tools/lib/perl5/&perl-version;
  62. cp -Rv lib/* /tools/lib/perl5/&perl-version;</userinput></screen>
  63. </sect2>
  64. <sect2 role="content">
  65. <title/>
  66. <para>Details on this package are located in
  67. <xref linkend="contents-perl" role="."/></para>
  68. </sect2>
  69. </sect1>