1
0

perl.xml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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>patch -Np1 -i ../&perl-libc-patch;</userinput></screen>
  38. <para>Prepare Perl for compilation (make sure to get the
  39. 'Data/Dumper Fcntl IO POSIX' part of the command correct&mdash;they are all
  40. letters):</para>
  41. <screen><userinput>./configure.gnu --prefix=/tools -Dstatic_ext='Data/Dumper Fcntl IO POSIX'</userinput></screen>
  42. <variablelist>
  43. <title>The meaning of the configure options:</title>
  44. <varlistentry>
  45. <term><parameter>-Dstatic_ext='Data/Dumper Fcntl IO POSIX'</parameter></term>
  46. <listitem>
  47. <para>This tells Perl to build the minimum set of static extensions
  48. needed for installing and testing the Coreutils and Glibc packages in the
  49. next chapter.</para>
  50. </listitem>
  51. </varlistentry>
  52. </variablelist>
  53. <para>Only a few of the utilities contained in this package need to be
  54. built:</para>
  55. <screen><userinput>make perl utilities</userinput></screen>
  56. <para>Although Perl comes with a test suite, it is not recommended to
  57. run it at this point. Only part of Perl was built and running
  58. <command>make test</command> now will cause the rest of Perl to be
  59. built as well, which is unnecessary at this point. The test suite can
  60. be run in the next chapter if desired.</para>
  61. <para>Install these tools and their libraries:</para>
  62. <screen><userinput>cp -v perl pod/pod2man /tools/bin
  63. mkdir -pv /tools/lib/perl5/&perl-version;
  64. cp -Rv lib/* /tools/lib/perl5/&perl-version;</userinput></screen>
  65. </sect2>
  66. <sect2 role="content">
  67. <title/>
  68. <para>Details on this package are located in
  69. <xref linkend="contents-perl" role="."/></para>
  70. </sect2>
  71. </sect1>