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

clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since a62153d was a62153d, checked in by William Harrington <kb0iic@…>, 10 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
Line 
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">
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
28    <para os="a">Prepare Flex for compilation:</para>
29
30<screen os="b"><userinput>./configure --prefix=/usr</userinput></screen>
31
32    <para os="c">Compile the package:</para>
33
34<screen os="d"><userinput>make</userinput></screen>
35
36    <para os="e">To test the results, issue:</para>
37
38<screen os="e2"><userinput remap="test">make check</userinput></screen>
39
40    <para os="f">Install the package:</para>
41
42<screen os="g"><userinput>make install</userinput></screen>
43
44    <para os="h">A few programs do not know about <command>flex</command> yet and
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
50<screen os="i"><userinput>cat &gt; /usr/bin/lex &lt;&lt; "EOF"
51<literal>#!/bin/sh
52# Begin /usr/bin/lex
53
54exec /usr/bin/flex -l "$@"
55
56# End /usr/bin/lex</literal>
57EOF
58chmod -v 755 /usr/bin/lex</userinput></screen>
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>
67      <segtitle>Installed libraries</segtitle>
68
69      <seglistitem>
70        <seg>flex, flex++, and lex</seg>
71        <seg>libfl.[a,so] and libfl_pic.[a,so]</seg>
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
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
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
114      <varlistentry id="libfl">
115        <term><filename class="libraryfile">libfl</filename></term>
116        <listitem>
117          <para>The <filename class="libraryfile">flex</filename> library</para>
118          <indexterm zone="ch-system-flex libfl">
119            <primary sortas="c-libfl">libfl</primary>
120          </indexterm>
121        </listitem>
122      </varlistentry>
123
124      <varlistentry id="libfl_pic">
125        <term><filename class="libraryfile">libfl_pic</filename></term>
126        <listitem>
127          <para>The <filename class="libraryfile">flex</filename> library</para>
128          <indexterm zone="ch-system-flex libfl_pic">
129            <primary sortas="c-libfl">libfl_pic</primary>
130          </indexterm>
131        </listitem>
132      </varlistentry>
133
134    </variablelist>
135
136  </sect2>
137
138</sect1>
Note: See TracBrowser for help on using the repository browser.