perl.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-tools-perl" role="wrap">
  7. <title>Perl-&perl-version;</title>
  8. <?dbhtml filename="perl.html"?>
  9. <indexterm zone="ch-tools-perl">
  10. <primary sortas="a-Perl">Perl</primary>
  11. <secondary>tools</secondary></indexterm>
  12. <sect2 role="package"><title/>
  13. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/perl.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
  14. <segmentedlist>
  15. <segtitle>&buildtime;</segtitle>
  16. <segtitle>&diskspace;</segtitle>
  17. <seglistitem><seg>0.8 SBU</seg><seg>74 MB</seg></seglistitem>
  18. </segmentedlist>
  19. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/perl.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
  20. </sect2>
  21. <sect2 role="installation">
  22. <title>Installation of Perl</title>
  23. <para>First adapt some hard-wired paths to the C library:</para>
  24. <screen><userinput>patch -Np1 -i ../perl-&perl-version;-libc-1.patch</userinput></screen>
  25. <para>Now prepare Perl for compilation (make sure you get the 'IO Fcntl POSIX'
  26. right, they are all letters):</para>
  27. <screen><userinput>./configure.gnu --prefix=/tools -Dstatic_ext='IO Fcntl POSIX'</userinput></screen>
  28. <para>The meaning of the configure option:</para>
  29. <variablelist>
  30. <varlistentry>
  31. <term><parameter>-Dstatic_ext='IO Fcntl POSIX'</parameter></term>
  32. <listitem><para>This tells
  33. Perl to build the minimum set of static extensions needed for installing and
  34. testing the Coreutils package in the next chapter.</para></listitem>
  35. </varlistentry>
  36. </variablelist>
  37. <para>Compile only the required tools:</para>
  38. <screen><userinput>make perl utilities</userinput></screen>
  39. <para>Then copy these tools and their libraries:</para>
  40. <screen><userinput>cp perl pod/pod2man /tools/bin
  41. mkdir -p /tools/lib/perl5/&perl-version;
  42. cp -R lib/* /tools/lib/perl5/&perl-version;</userinput></screen>
  43. </sect2>
  44. <sect2 role="content"><title/>
  45. <para>The details on this package are found in <xref linkend="contents-perl"/>.</para>
  46. </sect2>
  47. </sect1>