%general-entities; ]> flex &flex-version;
&flex-url;
Flex-&flex-version; Flex <para>The Flex package contains a utility for generating programs that recognize patterns in text.</para> <segmentedlist> <segtitle>&buildtime;</segtitle> <segtitle>&diskspace;</segtitle> <seglistitem> <seg>&flex-ch6-sbu;</seg> <seg>&flex-ch6-du;</seg> </seglistitem> </segmentedlist> </sect2> <sect2 role="installation"> <title>Installation of Flex First, fix a problem introduced with glibc-2.26: sed -i "/math.h/a #include <malloc.h>" src/flexdef.h The build procedure assumes the help2man program is available to create a man page from the executable --help option. This is not present, so we use an environment variable to skip this process. Now, prepare Flex for compilation: HELP2MAN=/tools/bin/true \ ./configure --prefix=/usr --docdir=/usr/share/doc/flex-&flex-version; Compile the package: make To test the results (about 0.5 SBU), issue: make check 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 symbolic link named lex that runs flex in lex emulation mode: ln -sv flex /usr/bin/lex Contents of Flex Installed programs Installed libraries Installed directory flex, flex++ (link to flex), and lex (link to flex) libfl.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++ An extension of flex, is used for generating C++ code and classes. It is a symbolic link to flex flex++ lex A symbolic link that runs flex in lex emulation mode lex libfl The flex library libfl