perl.xml 2.6 KB

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