source: general/genlib/pcre.xml@ ac7f1b0

11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/soup3 xry111/xf86-video-removal
Last change on this file since ac7f1b0 was ac7f1b0, checked in by Xi Ruoyao <xry111@…>, 2 years ago

pcre: glib2 does not have internal pcre now

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