source: general/genlib/pcre.xml@ 0928035

systemd-13485
Last change on this file since 0928035 was 0928035, checked in by Douglas R. Reno <renodr@…>, 8 years ago

Document a test suite failure in p11-kit
Add a patch for Valgrind to fix the test suite to use the new pthread_barrier implementation in Glibc
Text changes (esp. sg3_utils)
Tags

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@17015 af4574ff-66df-0310-9fd7-8a98e5e911e0

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