source: BOOK/final-system/common/flex.xml@ b0b8531

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since b0b8531 was a62153d, checked in by William Harrington <kb0iic@…>, 11 years ago

Remove libl link to libfl during Flex install. Was started way back in the day of LFS during 2002 and Detex install where libl.a was required. Haven't seen a need for it in a very long time.

  • Property mode set to 100644
File size: 4.2 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-flex" role="wrap">
9 <?dbhtml filename="flex.html"?>
10
11 <title>Flex-&flex-version;</title>
12
13 <indexterm zone="ch-system-flex">
14 <primary sortas="a-Flex">Flex</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Flex package contains a utility for generating programs that
21 recognize patterns in text.</para>
22
23 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of Flex</title>
27
[4bb4b626]28 <para os="a">Prepare Flex for compilation:</para>
[3f8be484]29
[4bb4b626]30<screen os="b"><userinput>./configure --prefix=/usr</userinput></screen>
[3f8be484]31
[4bb4b626]32 <para os="c">Compile the package:</para>
[3f8be484]33
[4bb4b626]34<screen os="d"><userinput>make</userinput></screen>
[3f8be484]35
[686839b]36 <para os="e">To test the results, issue:</para>
37
38<screen os="e2"><userinput remap="test">make check</userinput></screen>
[3f8be484]39
[4bb4b626]40 <para os="f">Install the package:</para>
[3f8be484]41
[4bb4b626]42<screen os="g"><userinput>make install</userinput></screen>
[3f8be484]43
[a62153d]44 <para os="h">A few programs do not know about <command>flex</command> yet and
[3f8be484]45 try to run its predecessor, <command>lex</command>. To support those
46 programs, create a wrapper script named <filename>lex</filename> that
47 calls <filename>flex</filename> in <command>lex</command> emulation
48 mode:</para>
49
[a62153d]50<screen os="i"><userinput>cat &gt; /usr/bin/lex &lt;&lt; "EOF"
[3f8be484]51<literal>#!/bin/sh
52# Begin /usr/bin/lex
53
54exec /usr/bin/flex -l "$@"
55
56# End /usr/bin/lex</literal>
57EOF
[94e6142]58chmod -v 755 /usr/bin/lex</userinput></screen>
[3f8be484]59
60 </sect2>
61
62 <sect2 id="contents-flex" role="content">
63 <title>Contents of Flex</title>
64
65 <segmentedlist>
66 <segtitle>Installed programs</segtitle>
[f5e37b2]67 <segtitle>Installed libraries</segtitle>
[3f8be484]68
69 <seglistitem>
[6d3523f]70 <seg>flex, flex++, and lex</seg>
[06c4516]71 <seg>libfl.[a,so] and libfl_pic.[a,so]</seg>
[3f8be484]72 </seglistitem>
73 </segmentedlist>
74
75 <variablelist>
76 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
77 <?dbfo list-presentation="list"?>
78 <?dbhtml list-presentation="table"?>
79
80 <varlistentry id="flex">
81 <term><command>flex</command></term>
82 <listitem>
83 <para>A tool for generating programs that recognize patterns in text;
84 it allows for the versatility to specify the rules for pattern-finding,
85 eradicating the need to develop a specialized program</para>
86 <indexterm zone="ch-system-flex flex">
87 <primary sortas="b-flex">flex</primary>
88 </indexterm>
89 </listitem>
90 </varlistentry>
91
[2b220db9]92 <varlistentry id="flexpp">
93 <term><command>flex++</command></term>
94 <listitem>
95 <para>Link to <command>flex</command> which makes it generate C++
96 scanner classes</para>
97 <indexterm zone="ch-system-flex flexpp">
98 <primary sortas="b-flex++">flex++</primary>
99 </indexterm>
100 </listitem>
101 </varlistentry>
102
[3f8be484]103 <varlistentry id="lex">
104 <term><command>lex</command></term>
105 <listitem>
106 <para>A script that runs <command>flex</command> in
107 <command>lex</command> emulation mode</para>
108 <indexterm zone="ch-system-flex lex">
109 <primary sortas="b-lex">lex</primary>
110 </indexterm>
111 </listitem>
112 </varlistentry>
113
[06c4516]114 <varlistentry id="libfl">
115 <term><filename class="libraryfile">libfl</filename></term>
[3f8be484]116 <listitem>
117 <para>The <filename class="libraryfile">flex</filename> library</para>
[06c4516]118 <indexterm zone="ch-system-flex libfl">
119 <primary sortas="c-libfl">libfl</primary>
[3f8be484]120 </indexterm>
121 </listitem>
122 </varlistentry>
123
[06c4516]124 <varlistentry id="libfl_pic">
125 <term><filename class="libraryfile">libfl_pic</filename></term>
[8053eec]126 <listitem>
127 <para>The <filename class="libraryfile">flex</filename> library</para>
[06c4516]128 <indexterm zone="ch-system-flex libfl_pic">
129 <primary sortas="c-libfl">libfl_pic</primary>
[8053eec]130 </indexterm>
131 </listitem>
132 </varlistentry>
133
[3f8be484]134 </variablelist>
135
136 </sect2>
137
138</sect1>
Note: See TracBrowser for help on using the repository browser.