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
12.2
12.2-rc1
6.0
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
v5_1
v5_1_1
xry111/arm64
xry111/arm64-12.0
xry111/clfs-ng
xry111/lfs-next
xry111/loongarch
xry111/loongarch-12.0
xry111/loongarch-12.1
xry111/loongarch-12.2
xry111/mips64el
xry111/multilib
xry111/pip3
xry111/rust-wip-20221008
xry111/update-glibc
Line | |
---|
1 | <sect1 id="ch-system-flex" xreflabel="Flex">
|
---|
2 | <title>Installing Flex-&flex-version;</title>
|
---|
3 | <?dbhtml filename="flex.html" dir="chapter06"?>
|
---|
4 |
|
---|
5 | <para>The Flex package contains a utility for generating programs that
|
---|
6 | recognize patterns in text.</para>
|
---|
7 |
|
---|
8 | <screen>&buildtime; &flex-time;
|
---|
9 | &diskspace; &flex-compsize;</screen>
|
---|
10 |
|
---|
11 | &aa-flex-down;
|
---|
12 | &aa-flex-dep;
|
---|
13 |
|
---|
14 | <sect2><title> </title><para> </para></sect2>
|
---|
15 |
|
---|
16 | <sect2>
|
---|
17 | <title>Installation of Flex</title>
|
---|
18 |
|
---|
19 | <para>Prepare Flex for compilation:</para>
|
---|
20 |
|
---|
21 | <screen><userinput>./configure --prefix=/usr</userinput></screen>
|
---|
22 |
|
---|
23 | <para>Compile the package:</para>
|
---|
24 |
|
---|
25 | <screen><userinput>make</userinput></screen>
|
---|
26 |
|
---|
27 | <para>To have the results tested, issue:
|
---|
28 | <userinput>make bigcheck</userinput>.</para>
|
---|
29 |
|
---|
30 | <para>And install the package:</para>
|
---|
31 |
|
---|
32 | <screen><userinput>make install</userinput></screen>
|
---|
33 |
|
---|
34 | <para>There are some packages that expect to find the <emphasis>lex</emphasis>
|
---|
35 | library in <filename>/usr/lib</filename>. Create a symlink to account for
|
---|
36 | this:</para>
|
---|
37 |
|
---|
38 | <screen><userinput>ln -s libfl.a /usr/lib/libl.a</userinput></screen>
|
---|
39 |
|
---|
40 | <para>A few programs don't know about <command>flex</command> yet and try
|
---|
41 | to run its predecessor <command>lex</command>. To support those programs,
|
---|
42 | create a wrapper script named <filename>lex</filename> that calls
|
---|
43 | <command>flex</command> in <emphasis>lex</emphasis> emulation mode:</para>
|
---|
44 |
|
---|
45 | <screen><userinput>cat > /usr/bin/lex << "EOF"</userinput>
|
---|
46 | #!/bin/sh
|
---|
47 | # Begin /usr/bin/lex
|
---|
48 |
|
---|
49 | exec /usr/bin/flex -l "$@"
|
---|
50 |
|
---|
51 | # End /usr/bin/lex
|
---|
52 | <userinput>EOF
|
---|
53 | chmod 755 /usr/bin/lex</userinput></screen>
|
---|
54 |
|
---|
55 | </sect2>
|
---|
56 |
|
---|
57 | &aa-flex-shortdesc;
|
---|
58 | &aa-flex-desc;
|
---|
59 |
|
---|
60 | </sect1>
|
---|
61 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.