perl.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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 adapt some hard-wired paths to the C library by applying
  36. the following patch:</para>
  37. <screen><userinput remap="pre">patch -Np1 -i ../&perl-libc-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">./configure.gnu --prefix=/tools -Dstatic_ext='Data/Dumper Fcntl IO POSIX'</userinput></screen>
  45. <variablelist>
  46. <title>The meaning of the configure options:</title>
  47. <varlistentry>
  48. <term><parameter>-Dstatic_ext='Data/Dumper Fcntl IO POSIX'</parameter></term>
  49. <listitem>
  50. <para>This tells Perl to build the minimum set of static extensions
  51. needed for installing and testing the Coreutils and Glibc packages in the
  52. next chapter.</para>
  53. </listitem>
  54. </varlistentry>
  55. </variablelist>
  56. <para>Only a few of the utilities contained in this package, and one of its
  57. libraries need to be built:</para>
  58. <screen><userinput remap="make">make perl utilities ext/Errno/pm_to_blib</userinput></screen>
  59. <para>Although Perl comes with a test suite, it is not recommended to
  60. run it at this point. Only part of Perl was built and running
  61. <command>make test</command> now will cause the rest of Perl to be
  62. built as well, which is unnecessary at this point. The test suite can
  63. be run in the next chapter if desired.</para>
  64. <para>Install these tools and their libraries:</para>
  65. <screen><userinput remap="install">cp -v perl pod/pod2man /tools/bin
  66. mkdir -pv /tools/lib/perl5/&perl-version;
  67. cp -Rv lib/* /tools/lib/perl5/&perl-version;</userinput></screen>
  68. </sect2>
  69. <sect2 role="content">
  70. <title/>
  71. <para>Details on this package are located in
  72. <xref linkend="contents-perl" role="."/></para>
  73. </sect2>
  74. </sect1>