source: general/genlib/pcre.xml@ 55c0855

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 55c0855 was 55c0855, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

Update to MariaDB-10.0.9. PCRE-8.34: build and security fixes for MariaDB-10.0.9.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@12864 af4574ff-66df-0310-9fd7-8a98e5e911e0

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