source: archive/pcre.xml

trunk
Last change on this file was 39eac921, checked in by Xi Ruoyao <xry111@…>, 7 weeks ago

Archive PCRE1

  • Property mode set to 100644
File size: 6.9 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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 <!ENTITY pcre-download-http "https://sourceforge.net/projects/pcre/files/pcre/8.45/pcre-&pcre-version;.tar.bz2">
8 <!ENTITY pcre-download-ftp " ">
9 <!ENTITY pcre-md5sum "4452288e6a0eefb2ab11d36010a1eebb">
10 <!ENTITY pcre-size "1.5 MB">
11 <!ENTITY pcre-buildsize "23 MB (with tests)">
12 <!ENTITY pcre-time "0.3 SBU (with tests)">
13]>
14
15<sect1 id="pcre" xreflabel="PCRE-&pcre-version;">
16 <?dbhtml filename="pcre.html"?>
17
18
19 <title>PCRE-&pcre-version;</title>
20
21 <indexterm zone="pcre">
22 <primary sortas="a-PCRE">PCRE</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to PCRE</title>
27
28 <para>
29 The <application>PCRE</application> package contains
30 <application>Perl</application> Compatible Regular Expression
31 libraries. These are useful for implementing regular expression
32 pattern matching using the same syntax and semantics as
33 <application>Perl</application> 5.
34 </para>
35
36 &lfs121_checked;
37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>
42 Download (HTTP): <ulink url="&pcre-download-http;"/>
43 </para>
44 </listitem>
45 <listitem>
46 <para>
47 Download (FTP): <ulink url="&pcre-download-ftp;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download MD5 sum: &pcre-md5sum;
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download size: &pcre-size;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Estimated disk space required: &pcre-buildsize;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated build time: &pcre-time;
68 </para>
69 </listitem>
70 </itemizedlist>
71
72 <bridgehead renderas="sect3">PCRE Dependencies</bridgehead>
73
74 <bridgehead renderas="sect4">Optional</bridgehead>
75 <para role="optional">
76 <xref linkend="valgrind"/>
77 </para>
78
79 </sect2>
80
81 <sect2 role="installation">
82 <title>Installation of PCRE</title>
83
84 <para>
85 Install <application>PCRE</application> by running
86 the following commands:
87 </para>
88
89<screen><userinput>./configure --prefix=/usr \
90 --docdir=/usr/share/doc/pcre-&pcre-version; \
91 --enable-unicode-properties \
92 --enable-pcre16 \
93 --enable-pcre32 \
94 --enable-pcregrep-libz \
95 --enable-pcregrep-libbz2 \
96 --enable-pcretest-libreadline \
97 --disable-static &amp;&amp;
98make</userinput></screen>
99
100 <para>
101 To test the results, issue: <command>make check</command>.
102 </para>
103
104 <para>
105 Now, as the <systemitem class="username">root</systemitem> user:
106 </para>
107
108<screen role="root"><userinput>make install</userinput></screen>
109
110 </sect2>
111
112 <sect2 role="commands">
113 <title>Command Explanations</title>
114
115 <para>
116 <parameter>--enable-unicode-properties</parameter>: This switch enables
117 Unicode properties support and includes the code for handling UTF-8/16/32
118 character strings in the library. You need this switch if you are going to
119 build <xref linkend="glib2"/>.
120 </para>
121
122 <para>
123 <parameter>--enable-pcre16</parameter>: This switch enables 16 bit
124 character support.
125 </para>
126
127 <para>
128 <parameter>--enable-pcre32</parameter>: This switch enables 32 bit
129 character support.
130 </para>
131
132 <para>
133 <parameter>--enable-pcregrep-libz</parameter>: This switch adds
134 support to <command>pcregrep</command> to read
135 <filename class="extension">.gz</filename> compressed files.
136 </para>
137
138 <para>
139 <parameter>--enable-pcregrep-libbz2</parameter>: This switch adds
140 support to <command>pcregrep</command> to read
141 <filename class="extension">.bz2</filename> compressed files.
142 </para>
143
144 <para>
145 <parameter>--enable-pcretest-libreadline</parameter>: This switch adds line
146 editing and history features to <command>pcretest</command> program.
147 </para>
148
149 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
150 href="../../xincludes/static-libraries.xml"/>
151
152 <!-- FIXME: Removed due to merged-/usr setup
153 <para>
154 <command>mv -v /usr/lib/libpcre.so.* /lib</command>: Moves the
155 <application>PCRE</application> library on the root filesystem
156 so that it is available in case <command>grep</command>
157 gets reinstalled with <application>PCRE</application> support.
158 </para>
159 -->
160
161 <para>
162 <option>--enable-jit</option>: this option enables Just-in-time
163 compiling, which can greatly speed up pattern matching.
164 </para>
165
166 </sect2>
167
168 <sect2 role="content">
169 <title>Contents</title>
170
171 <segmentedlist>
172 <segtitle>Installed Programs</segtitle>
173 <segtitle>Installed Libraries</segtitle>
174 <segtitle>Installed Directory</segtitle>
175
176 <seglistitem>
177 <seg>
178 pcregrep, pcretest, and pcre-config
179 </seg>
180 <seg>
181 libpcre.so, libpcre16.so, libpcre32.so,
182 libpcrecpp.so and libpcreposix.so
183 </seg>
184 <seg>
185 /usr/share/doc/pcre-&pcre-version;
186 </seg>
187 </seglistitem>
188 </segmentedlist>
189
190 <variablelist>
191 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
192 <?dbfo list-presentation="list"?>
193 <?dbhtml list-presentation="table"?>
194
195 <varlistentry id="pcregrep">
196 <term><command>pcregrep</command></term>
197 <listitem>
198 <para>
199 is a <command>grep</command> that understands
200 <application>Perl</application> compatible regular expressions
201 </para>
202 <indexterm zone="pcre pcregrep">
203 <primary sortas="b-pcregrep">pcregrep</primary>
204 </indexterm>
205 </listitem>
206 </varlistentry>
207
208 <varlistentry id="pcretest">
209 <term><command>pcretest</command></term>
210 <listitem>
211 <para>
212 can test a <application>Perl</application> compatible
213 regular expression
214 </para>
215 <indexterm zone="pcre pcretest">
216 <primary sortas="b-pcretest">pcretest</primary>
217 </indexterm>
218 </listitem>
219 </varlistentry>
220
221 <varlistentry id="pcre-config">
222 <term><command>pcre-config</command></term>
223 <listitem>
224 <para>
225 is used during the compile process of programs linking to
226 the <application>PCRE</application> libraries
227 </para>
228 <indexterm zone="pcre pcre-config">
229 <primary sortas="b-pcre-config">pcre-config</primary>
230 </indexterm>
231 </listitem>
232 </varlistentry>
233
234 </variablelist>
235
236 </sect2>
237
238</sect1>
Note: See TracBrowser for help on using the repository browser.