source: general/genlib/pcre.xml@ 7fd2c27

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 7fd2c27 was 7fd2c27, checked in by Douglas R. Reno <renodr@…>, 7 years ago

Tags, Tags, and More Tags!

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