flex.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-tools-flex" role="wrap">
  8. <?dbhtml filename="flex.html"?>
  9. <title>Flex-&flex-version;</title>
  10. <indexterm zone="ch-tools-flex">
  11. <primary sortas="a-Flex">Flex</primary>
  12. <secondary>tools</secondary>
  13. </indexterm>
  14. <sect2 role="package">
  15. <title/>
  16. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  17. href="../chapter06/flex.xml"
  18. xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
  19. <segmentedlist>
  20. <segtitle>&buildtime;</segtitle>
  21. <segtitle>&diskspace;</segtitle>
  22. <seglistitem>
  23. <seg>&flex-ch5-sbu;</seg>
  24. <seg>&flex-ch5-du;</seg>
  25. </seglistitem>
  26. </segmentedlist>
  27. </sect2>
  28. <sect2 role="installation">
  29. <title>Installation of Flex</title>
  30. <para>Flex contains several known bugs. These can be fixed with the
  31. following patch:</para>
  32. <screen><userinput>patch -Np1 -i ../&flex-fixes-patch;</userinput></screen>
  33. <para>The GNU autotools will detect that the Flex source code has been
  34. modified by the previous patch and tries to update the man page
  35. accordingly. This does not work on many systems, and the default page is
  36. fine, so make sure it does not get regenerated:</para>
  37. <screen><userinput>touch doc/flex.1</userinput></screen>
  38. <para>Now prepare Flex for compilation:</para>
  39. <screen><userinput>./configure --prefix=/tools</userinput></screen>
  40. <para>Compile the package:</para>
  41. <screen><userinput>make</userinput></screen>
  42. <para>To test the results, issue:
  43. <userinput>make check</userinput>.</para>
  44. <para>Install the package:</para>
  45. <screen><userinput>make install</userinput></screen>
  46. </sect2>
  47. <sect2 role="content">
  48. <title/>
  49. <para>Details on this package are located in
  50. <xref linkend="contents-flex" role="."/></para>
  51. </sect2>
  52. </sect1>