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">
8 <sect1 id="ch-tools-flex" role="wrap">
9 <?dbhtml filename="flex.html"?>
11 <sect1info condition="script">
12 <productname>flex</productname>
13 <productnumber>&flex-version;</productnumber>
14 <address>&flex-url;</address>
17 <title>Flex-&flex-version;</title>
19 <indexterm zone="ch-tools-flex">
20 <primary sortas="a-Flex">Flex</primary>
21 <secondary>tools</secondary>
24 <sect2 role="package">
27 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
28 href="../chapter06/flex.xml"
29 xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
32 <segtitle>&buildtime;</segtitle>
33 <segtitle>&diskspace;</segtitle>
36 <seg>&flex-ch5-sbu;</seg>
37 <seg>&flex-ch5-du;</seg>
43 <sect2 role="installation">
44 <title>Installation of Flex</title>
46 <para>Flex contains several known bugs. These can be fixed with the
47 following patch:</para>
49 <screen><userinput remap="pre">patch -Np1 -i ../&flex-fixes-patch;</userinput></screen>
51 <para>The GNU autotools will detect that the Flex source code has been
52 modified by the previous patch and tries to update the man page
53 accordingly. This does not work on many systems, and the default page is
54 fine, so make sure it does not get regenerated:</para>
56 <screen><userinput remap="pre">touch doc/flex.1</userinput></screen>
58 <para>Now prepare Flex for compilation:</para>
60 <screen><userinput remap="configure">./configure --prefix=/tools</userinput></screen>
62 <para>Compile the package:</para>
64 <screen><userinput remap="make">make</userinput></screen>
66 <para>To test the results, issue:</para>
68 <screen><userinput remap="test">make check</userinput></screen>
70 <para>Install the package:</para>
72 <screen><userinput remap="install">make install</userinput></screen>
76 <sect2 role="content">
79 <para>Details on this package are located in
80 <xref linkend="contents-flex" role="."/></para>