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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 0d9eda9 was 8053eec, checked in by Joe Ciccone <jciccone@…>, 17 years ago

Flex now installs a static library compile with fPIC.

  • Property mode set to 100644
File size: 4.0 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="e">Prepare Flex for compilation:</para>
29
30<screen os="f"><userinput>./configure --prefix=/usr</userinput></screen>
31
32 <para os="g">Compile the package:</para>
33
34<screen os="h"><userinput>make</userinput></screen>
35
36 <para os="i">To test the results, issue:
37 <userinput>make check</userinput>.</para>
38
39 <para os="j">Install the package:</para>
40
41<screen os="k"><userinput>make install</userinput></screen>
42
43 <para os="l">There are some packages that expect to find the
44 <filename class="libraryfile">lex</filename> library in <filename
45 class="directory">/usr/lib</filename>. Create a symlink to account for
46 this:</para>
47
48<screen os="m"><userinput>ln -sv libfl.a /usr/lib/libl.a</userinput></screen>
49
50 <para os="n">A few programs do not know about <command>flex</command> yet and
51 try to run its predecessor, <command>lex</command>. To support those
52 programs, create a wrapper script named <filename>lex</filename> that
53 calls <filename>flex</filename> in <command>lex</command> emulation
54 mode:</para>
55
56<screen os="o"><userinput>cat &gt; /usr/bin/lex &lt;&lt; "EOF"
57<literal>#!/bin/sh
58# Begin /usr/bin/lex
59
60exec /usr/bin/flex -l "$@"
61
62# End /usr/bin/lex</literal>
63EOF
64chmod -v 755 /usr/bin/lex</userinput></screen>
65
66 </sect2>
67
68 <sect2 id="contents-flex" role="content">
69 <title>Contents of Flex</title>
70
71 <segmentedlist>
72 <segtitle>Installed programs</segtitle>
73 <segtitle>Installed library</segtitle>
74
75 <seglistitem>
76 <seg>flex and lex</seg>
77 <seg>libfl.a</seg>
78 </seglistitem>
79 </segmentedlist>
80
81 <variablelist>
82 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
83 <?dbfo list-presentation="list"?>
84 <?dbhtml list-presentation="table"?>
85
86 <varlistentry id="flex">
87 <term><command>flex</command></term>
88 <listitem>
89 <para>A tool for generating programs that recognize patterns in text;
90 it allows for the versatility to specify the rules for pattern-finding,
91 eradicating the need to develop a specialized program</para>
92 <indexterm zone="ch-system-flex flex">
93 <primary sortas="b-flex">flex</primary>
94 </indexterm>
95 </listitem>
96 </varlistentry>
97
98 <varlistentry id="lex">
99 <term><command>lex</command></term>
100 <listitem>
101 <para>A script that runs <command>flex</command> in
102 <command>lex</command> emulation mode</para>
103 <indexterm zone="ch-system-flex lex">
104 <primary sortas="b-lex">lex</primary>
105 </indexterm>
106 </listitem>
107 </varlistentry>
108
109 <varlistentry id="libfl.a">
110 <term><filename class="libraryfile">libfl.a</filename></term>
111 <listitem>
112 <para>The <filename class="libraryfile">flex</filename> library</para>
113 <indexterm zone="ch-system-flex libfl.a">
114 <primary sortas="c-libfl.a">libfl.a</primary>
115 </indexterm>
116 </listitem>
117 </varlistentry>
118
119 <varlistentry id="libfl_pic.a">
120 <term><filename class="libraryfile">libfl_pic.a</filename></term>
121 <listitem>
122 <para>The <filename class="libraryfile">flex</filename> library</para>
123 <indexterm zone="ch-system-flex libfl_pic.a">
124 <primary sortas="c-libfl.a">libfl_pic.a</primary>
125 </indexterm>
126 </listitem>
127 </varlistentry>
128
129 </variablelist>
130
131 </sect2>
132
133</sect1>
Note: See TracBrowser for help on using the repository browser.