%general-entities; ]> Flex-&flex-version; Flex <para>The Flex package contains a utility for generating programs that recognize patterns in text.</para> </sect2> <sect2 role="installation"> <title>Installation of Flex Prepare Flex for compilation: M4=m4 ./configure --prefix=/usr --docdir=/usr/share/doc/flex-&flex-version; Compile the package: make To test the results, issue: make check The test suite will report 3 failures for tests that use bison, which is not installed yet. For full test coverage, you can run Flex's test suite again after Bison is installed. Install the package: make install A few programs do not know about flex yet and try to run its predecessor, lex. To support those programs, create a wrapper script named lex that calls flex in lex emulation mode: cat > /usr/bin/lex << "EOF" #!/bin/sh # Begin /usr/bin/lex exec /usr/bin/flex -l "$@" # End /usr/bin/lex EOF chmod -v 755 /usr/bin/lex Contents of Flex Installed programs Installed libraries Installed directory flex, flex++ (link to flex), lex libfl.[a,so], libfl_pic.[a,so] /usr/share/doc/flex-&flex-version; Short Descriptions flex A tool for generating programs that recognize patterns in text; it allows for the versatility to specify the rules for pattern-finding, eradicating the need to develop a specialized program flex flex++ Link to flex which makes it generate C++ scanner classes flex++ lex A script that runs flex in lex emulation mode lex libfl The flex library libfl libfl_pic The flex library libfl_pic