perl.xml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/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. <sect1info condition="script">
  10. <productname>perl</productname>
  11. <productnumber>&perl-version;</productnumber>
  12. <address>&perl-url;</address>
  13. </sect1info>
  14. <title>Perl-&perl-version;</title>
  15. <indexterm zone="ch-tools-perl">
  16. <primary sortas="a-Perl">Perl</primary>
  17. <secondary>tools</secondary>
  18. </indexterm>
  19. <sect2 role="package">
  20. <title/>
  21. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  22. href="../chapter06/perl.xml"
  23. xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
  24. <segmentedlist>
  25. <segtitle>&buildtime;</segtitle>
  26. <segtitle>&diskspace;</segtitle>
  27. <seglistitem>
  28. <seg>&perl-ch5-sbu;</seg>
  29. <seg>&perl-ch5-du;</seg>
  30. </seglistitem>
  31. </segmentedlist>
  32. </sect2>
  33. <sect2 role="installation">
  34. <title>Installation of Perl</title>
  35. <para>First apply a series of patches to address security issues and adapt some
  36. hard-wired paths to the C library by applying the following patch:</para>
  37. <screen><userinput remap="pre">patch -Np1 -i ../&perl-consolidated-patch;</userinput></screen>
  38. <!-- <para>Fix an incompatibility with gcc-&gcc-version;:</para>
  39. <screen><userinput remap="pre">mv -v makedepend.SH{,.orig}
  40. sed 's/command /command[ -]/' makedepend.SH.orig &gt; makedepend.SH</userinput></screen> -->
  41. <para>Prepare Perl for compilation (make sure to get the
  42. 'Data/Dumper Fcntl IO POSIX' part of the command correct&mdash;they are all
  43. letters):</para>
  44. <screen><userinput remap="configure">sh Configure -des -Dprefix=/tools \
  45. -Dstatic_ext='Data/Dumper Fcntl IO POSIX'</userinput></screen>
  46. <variablelist>
  47. <title>The meaning of the configure options:</title>
  48. <varlistentry>
  49. <term><parameter>-Dstatic_ext='Data/Dumper Fcntl IO POSIX'</parameter></term>
  50. <listitem>
  51. <para>This tells Perl to build the minimum set of static extensions
  52. needed for installing and testing the Coreutils and Glibc packages in the
  53. next chapter.</para>
  54. </listitem>
  55. </varlistentry>
  56. </variablelist>
  57. <para>Only a few of the utilities contained in this package, and one of its
  58. libraries need to be built:</para>
  59. <screen><userinput remap="make">make perl utilities ext/Errno/pm_to_blib</userinput></screen>
  60. <para>Although Perl comes with a test suite, it is not recommended to
  61. run it at this point. Only part of Perl was built and running
  62. <command>make test</command> now will cause the rest of Perl to be
  63. built as well, which is unnecessary at this point. The test suite can
  64. be run in the next chapter if desired.</para>
  65. <para>Install these tools and their libraries:</para>
  66. <screen><userinput remap="install">cp -v perl pod/pod2man /tools/bin
  67. mkdir -pv /tools/lib/perl5/&perl-version;
  68. cp -Rv lib/* /tools/lib/perl5/&perl-version;</userinput></screen>
  69. </sect2>
  70. <sect2 role="content">
  71. <title/>
  72. <para>Details on this package are located in
  73. <xref linkend="contents-perl" role="."/></para>
  74. </sect2>
  75. </sect1>