perl.xml 2.7 KB

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