source: general/genlib/pcre.xml@ bf565e06

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/xf86-video-removal
Last change on this file since bf565e06 was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 18 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

  • Property mode set to 100644
File size: 7.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 <!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 &lfs112_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 <para condition="html" role="usernotes">User Notes:
80 <ulink url="&blfs-wiki;/pcre"/>
81 </para>
82 </sect2>
83
84 <sect2 role="installation">
85 <title>Installation of PCRE</title>
86
87 <para>
88 Install <application>PCRE</application> by running
89 the following commands:
90 </para>
91
92<screen><userinput>./configure --prefix=/usr \
93 --docdir=/usr/share/doc/pcre-&pcre-version; \
94 --enable-unicode-properties \
95 --enable-pcre16 \
96 --enable-pcre32 \
97 --enable-pcregrep-libz \
98 --enable-pcregrep-libbz2 \
99 --enable-pcretest-libreadline \
100 --disable-static &amp;&amp;
101make</userinput></screen>
102
103 <para>
104 To test the results, issue: <command>make check</command>.
105 </para>
106
107 <para>
108 Now, as the <systemitem class="username">root</systemitem> user:
109 </para>
110
111<screen role="root"><userinput>make install</userinput></screen>
112
113 </sect2>
114
115 <sect2 role="commands">
116 <title>Command Explanations</title>
117
118 <para>
119 <parameter>--enable-unicode-properties</parameter>: This switch enables
120 Unicode properties support and includes the code for handling UTF-8/16/32
121 character strings in the library. You need this switch if you are going to
122 build <xref linkend="glib2"/>.
123 </para>
124
125 <para>
126 <parameter>--enable-pcre16</parameter>: This switch enables 16 bit
127 character support.
128 </para>
129
130 <para>
131 <parameter>--enable-pcre32</parameter>: This switch enables 32 bit
132 character support.
133 </para>
134
135 <para>
136 <parameter>--enable-pcregrep-libz</parameter>: This switch adds
137 support to <command>pcregrep</command> to read
138 <filename class="extension">.gz</filename> compressed files.
139 </para>
140
141 <para>
142 <parameter>--enable-pcregrep-libbz2</parameter>: This switch adds
143 support to <command>pcregrep</command> to read
144 <filename class="extension">.bz2</filename> compressed files.
145 </para>
146
147 <para>
148 <parameter>--enable-pcretest-libreadline</parameter>: This switch adds line
149 editing and history features to <command>pcretest</command> program.
150 </para>
151
152 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
153 href="../../xincludes/static-libraries.xml"/>
154
155 <!-- FIXME: Removed due to merged-/usr setup
156 <para>
157 <command>mv -v /usr/lib/libpcre.so.* /lib</command>: Moves the
158 <application>PCRE</application> library on the root filesystem
159 so that it is available in case <command>grep</command>
160 gets reinstalled with <application>PCRE</application> support.
161 </para>
162 -->
163
164 <para>
165 <option>--enable-jit</option>: this option enables Just-in-time
166 compiling, which can greatly speed up pattern matching.
167 </para>
168
169 </sect2>
170
171 <sect2 role="content">
172 <title>Contents</title>
173
174 <segmentedlist>
175 <segtitle>Installed Programs</segtitle>
176 <segtitle>Installed Libraries</segtitle>
177 <segtitle>Installed Directory</segtitle>
178
179 <seglistitem>
180 <seg>
181 pcregrep, pcretest, and pcre-config
182 </seg>
183 <seg>
184 libpcre.so, libpcre16.so, libpcre32.so,
185 libpcrecpp.so and libpcreposix.so
186 </seg>
187 <seg>
188 /usr/share/doc/pcre-&pcre-version;
189 </seg>
190 </seglistitem>
191 </segmentedlist>
192
193 <variablelist>
194 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
195 <?dbfo list-presentation="list"?>
196 <?dbhtml list-presentation="table"?>
197
198 <varlistentry id="pcregrep">
199 <term><command>pcregrep</command></term>
200 <listitem>
201 <para>
202 is a <command>grep</command> that understands
203 <application>Perl</application> compatible regular expressions
204 </para>
205 <indexterm zone="pcre pcregrep">
206 <primary sortas="b-pcregrep">pcregrep</primary>
207 </indexterm>
208 </listitem>
209 </varlistentry>
210
211 <varlistentry id="pcretest">
212 <term><command>pcretest</command></term>
213 <listitem>
214 <para>
215 can test a <application>Perl</application> compatible
216 regular expression
217 </para>
218 <indexterm zone="pcre pcretest">
219 <primary sortas="b-pcretest">pcretest</primary>
220 </indexterm>
221 </listitem>
222 </varlistentry>
223
224 <varlistentry id="pcre-config">
225 <term><command>pcre-config</command></term>
226 <listitem>
227 <para>
228 is used during the compile process of programs linking to
229 the <application>PCRE</application> libraries
230 </para>
231 <indexterm zone="pcre pcre-config">
232 <primary sortas="b-pcre-config">pcre-config</primary>
233 </indexterm>
234 </listitem>
235 </varlistentry>
236
237 </variablelist>
238
239 </sect2>
240
241</sect1>
Note: See TracBrowser for help on using the repository browser.