gawk.xml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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-gawk" role="wrap">
  7. <title>Gawk-&gawk-version;</title>
  8. <?dbhtml filename="gawk.html"?>
  9. <indexterm zone="ch-tools-gawk">
  10. <primary sortas="a-Gawk">Gawk</primary>
  11. <secondary>tools</secondary></indexterm>
  12. <sect2 role="package"><title/>
  13. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/gawk.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
  14. <segmentedlist>
  15. <segtitle>&buildtime;</segtitle>
  16. <segtitle>&diskspace;</segtitle>
  17. <seglistitem><seg>0.2 SBU</seg><seg>16.4 MB</seg></seglistitem>
  18. </segmentedlist>
  19. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/gawk.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
  20. </sect2>
  21. <sect2 role="installation">
  22. <title>Installation of Gawk</title>
  23. <para>Prepare Gawk for compilation:</para>
  24. <screen><userinput>./configure --prefix=/tools</userinput></screen>
  25. <para>Due to a bug in the <command>./configure</command> script, Gawk fails
  26. to detect certain aspects of locale support in glibc. This
  27. bug leads to, e.g., Gettext testsuite failures. Work around this issue
  28. by appending the missing macro definitions to <filename>config.h</filename>:</para>
  29. <screen><userinput>cat &gt;&gt;config.h &lt;&lt;"EOF"
  30. <literal>#define HAVE_LANGINFO_CODESET 1
  31. #define HAVE_LC_MESSAGES 1</literal>
  32. EOF</userinput></screen>
  33. <para>Compile the package:</para>
  34. <screen><userinput>make</userinput></screen>
  35. <para>To test the results, issue: <userinput>make check</userinput>.</para>
  36. <para>Install the package:</para>
  37. <screen><userinput>make install</userinput></screen>
  38. </sect2>
  39. <sect2 role="content"><title/>
  40. <para>Details on this package are located in <xref
  41. linkend="contents-gawk" role="."/></para>
  42. </sect2>
  43. </sect1>