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. %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>79.8 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 by applying
  24. the following patch:</para>
  25. <screen><userinput>patch -Np1 -i ../&perl-libc-patch;</userinput></screen>
  26. <para>Prepare Perl for compilation (make sure to get the
  27. 'Data/Dumper Fcntl IO POSIX' part of the command correct&mdash;they are all
  28. letters):</para>
  29. <screen><userinput>./configure.gnu --prefix=/tools -Dstatic_ext='Data/Dumper Fcntl IO POSIX'</userinput></screen>
  30. <para>The meaning of the configure options:</para>
  31. <variablelist>
  32. <varlistentry>
  33. <term><parameter>-Dstatic_ext='Data/Dumper Fcntl IO POSIX'</parameter></term>
  34. <listitem><para>This tells Perl to build the minimum set of static
  35. extensions needed for installing and testing the Coreutils package in
  36. the next chapter.</para></listitem>
  37. </varlistentry>
  38. </variablelist>
  39. <para>Only a few of the utilities contained in this package need to be
  40. built:</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>Install these tools and their libraries:</para>
  48. <screen><userinput>cp -v perl pod/pod2man /tools/bin
  49. mkdir -pv /tools/lib/perl5/&perl-version;
  50. cp -Rv 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>