perl.xml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 option:</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>Compile only the required tools:</para>
  41. <screen><userinput>make perl utilities</userinput></screen>
  42. <para>Although Perl comes with a test suite, it is not recommended to
  43. run it at this point. Only part of Perl was built and running
  44. <userinput>make test</userinput> now will cause the rest of Perl to be
  45. built as well, which is unnecessary at this point. The test suite can
  46. be run in the next chapter if desired.</para>
  47. <para>Copy these tools and their libraries:</para>
  48. <screen><userinput>cp perl pod/pod2man /tools/bin
  49. mkdir -p /tools/lib/perl5/&perl-version;
  50. cp -R lib/* /tools/lib/perl5/&perl-version;</userinput></screen>
  51. </sect2>
  52. <sect2 role="content"><title/>
  53. <para>Details on this package are located in <xref
  54. linkend="contents-perl" role="."/></para>
  55. </sect2>
  56. </sect1>