source: general/genlib/pcre.xml@ 41b674d

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.5 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 41b674d was 41b674d, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

LFS75 tags

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

  • Property mode set to 100644
File size: 7.2 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">PCRE Dependencies</bridgehead>
77
78 <bridgehead renderas="sect4">Optional</bridgehead>
79 <para role="optional">
80 <ulink url="http://valgrind.org/">Valgrind</ulink>
81 </para>
82
83 <para condition="html" role="usernotes">User Notes:
84 <ulink url="&blfs-wiki;/pcre"/>
85 </para>
86 </sect2>
87
88 <sect2 role="installation">
89 <title>Installation of PCRE</title>
90
91 <para>
92 Install <application>PCRE</application> by running
93 the following commands:
94 </para>
95
96<screen><userinput>./configure --prefix=/usr \
97 --docdir=/usr/share/doc/pcre-&pcre-version; \
98 --enable-unicode-properties \
99 --enable-pcre16 \
100 --enable-pcre32 \
101 --enable-pcregrep-libz \
102 --enable-pcregrep-libbz2 \
103 --enable-pcretest-libreadline \
104 --disable-static &amp;&amp;
105make</userinput></screen>
106
107 <para>
108 To test the results, issue: <command>make check</command>.
109 </para>
110
111 <para>
112 Now, as the <systemitem class="username">root</systemitem> user:
113 </para>
114
115<screen role="root"><userinput>make install &amp;&amp;
116mv -v /usr/lib/libpcre.so.* /lib &amp;&amp;
117ln -sfv ../../lib/$(readlink /usr/lib/libpcre.so) /usr/lib/libpcre.so</userinput></screen>
118
119 </sect2>
120
121 <sect2 role="commands">
122 <title>Command Explanations</title>
123
124 <para>
125 <parameter>--enable-unicode-properties</parameter>: This switch enables
126 Unicode properties support and includes the code for handling UTF-8/16/32
127 character strings in the library. You need this switch if you are going to
128 build <xref linkend="glib2"/> with the
129 <parameter>--with-pcre=system</parameter> switch.
130 </para>
131
132 <para>
133 <parameter>--enable-pcre16</parameter>: This switch enables 16 bit
134 character support.
135 </para>
136
137 <para>
138 <parameter>--enable-pcre32</parameter>: This switch enables 32 bit
139 character support.
140 </para>
141
142 <para>
143 <parameter>--enable-pcregrep-libz</parameter>: This switch adds
144 support to <command>pcregrep</command> to read
145 <filename class="extension">.gz</filename> compressed files.
146 </para>
147
148 <para>
149 <parameter>--enable-pcregrep-libbz2</parameter>: This switch adds
150 support to <command>pcregrep</command> to read
151 <filename class="extension">.bz2</filename> compressed files.
152 </para>
153
154 <para>
155 <parameter>--enable-pcretest-libreadline</parameter>: This switch adds line
156 editing and history features to <command>pcretest</command> program.
157 </para>
158
159 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
160 href="../../xincludes/static-libraries.xml"/>
161
162 <para>
163 <command>mv -v /usr/lib/libpcre.so.* /lib</command>: Moves the
164 <application>PCRE</application> library on the root filesystem
165 so that it is available in case <command>grep</command>
166 gets reinstalled with <application>PCRE</application> support.
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.