Changeset 81fd230 for chapter06/flex.xml
- Timestamp:
- 02/19/2005 10:16:42 PM (19 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 3d31fc4
- Parents:
- 2f9131f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/flex.xml
r2f9131f r81fd230 4 4 %general-entities; 5 5 ]> 6 <sect1 id="ch-system-flex" xreflabel="Flex"role="wrap">6 <sect1 id="ch-system-flex" role="wrap"> 7 7 <title>Flex-&flex-version;</title> 8 8 <?dbhtml filename="flex.html"?> … … 11 11 12 12 <sect2 role="package"><title/> 13 <para>The Flex package contains a utility for generating programs that 14 recognize patterns in text.</para> 13 15 14 16 <segmentedlist> … … 18 20 </segmentedlist> 19 21 22 <segmentedlist> 23 <segtitle>Flex installation depends on</segtitle> 24 <seglistitem><seg>Bash, Binutils, Bison, Coreutils, Diffutils, 25 GCC, Gettext, Glibc, Grep, M4, Make, and Sed</seg></seglistitem> 26 </segmentedlist> 20 27 </sect2> 21 28 … … 23 30 <title>Installation of Flex</title> 24 31 25 <para> Apply apatch:</para>32 <para>Flex contains several known bugs. Fix these with the following patch:</para> 26 33 27 34 <screen><userinput>patch -Np1 -i ../flex-&flex-version;-debian_fixes-2.patch</userinput></screen> 28 35 29 <para>Touch the man-page:</para> 36 <para>The GNU autotools detects that the Flex source code has been 37 modified by the previous patch and tries to update the manual page 38 accordingly. This does not work correctly on many systems, and the 39 default page is fine, so make sure it does not get regenerated:</para> 30 40 31 41 <screen><userinput>touch doc/flex.1</userinput></screen> 32 42 33 <para> Now prepare Flex for compilation:</para>43 <para>Prepare Flex for compilation:</para> 34 44 35 45 <screen><userinput>./configure --prefix=/usr</userinput></screen> … … 42 52 <userinput>make check</userinput>.</para> 43 53 44 <para> Now install the package:</para>54 <para>Install the package:</para> 45 55 46 56 <screen><userinput>make install</userinput></screen> 47 57 48 <para>Create a symlink:</para> 58 <para>There are some packages that expect to find the 59 <filename class="libraryfile">lex</filename> library in <filename 60 class="directory">/usr/lib</filename>. Create a symlink to account for 61 this:</para> 49 62 50 63 <screen><userinput>ln -s libfl.a /usr/lib/libl.a</userinput></screen> 51 64 52 <para>Create a lex script:</para> 65 <para>A few programs do not know about <command>flex</command> yet and 66 try to run its predecessor, <command>lex</command>. To support those 67 programs, create a wrapper script named <filename>lex</filename> that 68 calls <filename>flex</filename> in <command>lex</command> emulation mode:</para> 53 69 54 70 <screen><userinput>cat > /usr/bin/lex << "EOF" … … 67 83 <sect2 id="contents-flex" role="content"><title>Contents of Flex</title> 68 84 69 <para>See testing</para> 85 <segmentedlist> 86 <segtitle>Installed programs</segtitle> 87 <segtitle>Installed library</segtitle> 88 <seglistitem><seg>flex, flex++ (link to flex), and lex</seg> 89 <seg>libfl.a</seg></seglistitem> 90 </segmentedlist> 91 92 <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead> 93 <?dbfo list-presentation="list"?> 94 95 <varlistentry id="flex"> 96 <term><command>flex</command></term> 97 <listitem> 98 <para>A tool for generating programs that recognize patterns in text; 99 it allows for the versatility to specify the rules for 100 pattern-finding, eradicating the need to develop a specialized 101 program</para> 102 <indexterm zone="ch-system-flex flex"><primary sortas="b-flex">flex</primary></indexterm> 103 </listitem> 104 </varlistentry> 105 106 <varlistentry id="flex-"> 107 <term><command>flex++</command></term> 108 <listitem> 109 <para>Invokes a version of <command>flex</command> that is used exclusively for C++ scanners</para> 110 <indexterm zone="ch-system-flex flex-"><primary sortas="b-flex++">flex++</primary></indexterm> 111 </listitem> 112 </varlistentry> 113 114 <varlistentry id="lex"> 115 <term><command>lex</command></term> 116 <listitem> 117 <para>Script that runs <command>flex</command> in <command>lex</command> 118 emulation mode</para> 119 <indexterm zone="ch-system-flex lex"><primary sortas="b-lex">lex</primary></indexterm> 120 </listitem> 121 </varlistentry> 122 123 <varlistentry id="libfl.a"> 124 <term><filename class="libraryfile">libfl.a</filename></term> 125 <listitem> 126 <para>The <filename class="libraryfile">flex</filename> library</para> 127 <indexterm zone="ch-system-flex libfl.a"><primary sortas="c-libfl.a">libfl.a</primary></indexterm> 128 </listitem> 129 </varlistentry> 130 </variablelist> 70 131 71 132 </sect2> 72 133 73 134 </sect1> 135
Note:
See TracChangeset
for help on using the changeset viewer.