perl.xml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <sect1 id="ch05-perl">
  2. <title>Installing Perl-&perl-version;</title>
  3. <?dbhtml filename="perl.html" dir="chapter05"?>
  4. <screen>Estimated build time: &perl-time-tools;
  5. Estimated required disk space: &perl-compsize-tools;</screen>
  6. <para>For the package details see <xref linkend="contents-perl"/>.</para>
  7. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  8. <sect2>
  9. <title>Installation of Perl</title>
  10. <para>First adapt some hard-wired paths to the C library:</para>
  11. <screen><userinput>patch -Np1 -i ../&perl-libc-patch;</userinput></screen>
  12. <para>Now prepare Perl for compilation:</para>
  13. <screen><userinput>./configure.gnu --prefix=/tools -Dstatic_ext='IO Fcntl'</userinput></screen>
  14. <para>The meaning of the configure option:</para>
  15. <itemizedlist>
  16. <listitem><para><userinput>-Dstatic_ext='IO Fcntl'</userinput>: This tells
  17. Perl to build the minimum set of static extensions needed for running the
  18. Coreutils test suite in the next chapter.</para></listitem>
  19. </itemizedlist>
  20. <para>Compile only the required tools:</para>
  21. <screen><userinput>make perl utilities</userinput></screen>
  22. <para>Then copy these tools and their libraries:</para>
  23. <screen><userinput>cp perl pod/pod2man /tools/bin
  24. mkdir -p /tools/lib/perl5/&perl-version;
  25. cp -R lib/* /tools/lib/perl5/&perl-version;</userinput></screen>
  26. </sect2>
  27. </sect1>