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">
8 <sect1 id="ch-system-pcre" role="wrap">
9 <?dbhtml filename="pcre.html"?>
11 <sect1info condition="script">
12 <productname>pcre</productname>
13 <productnumber>&pcre-version;</productnumber>
14 <address>&pcre-url;</address>
17 <title>PCRE-&pcre-version;</title>
19 <indexterm zone="ch-system-pcre">
20 <primary sortas="a-PCRE">PCRE</primary>
23 <sect2 role="package">
26 <para>The PCRE package contains Perl Compatible Regular Expression
27 libraries. These are useful for implementing regular expression pattern
28 matching using the same syntax and semantics as Perl 5.</para>
31 <segtitle>&buildtime;</segtitle>
32 <segtitle>&diskspace;</segtitle>
35 <seg>&pcre-ch6-sbu;</seg>
36 <seg>&pcre-ch6-du;</seg>
42 <sect2 role="installation">
43 <title>Installation of PCRE</title>
45 <para>Prepare PCRE for compilation:</para>
47 <screen><userinput remap="configure">./configure --prefix=/usr \
48 --docdir=/usr/share/doc/pcre-&pcre-version; \
50 --enable-unicode-properties \
51 --enable-pcregrep-libz \
52 --enable-pcregrep-libbz2</userinput></screen>
55 <title>The meaning of the configure options:</title>
58 <term><parameter>--enable-utf8</parameter></term>
60 <para>This switch includes the code for handling UTF-8 character
61 strings in the library.</para>
65 <term><parameter>--enable-unicode-properties</parameter></term>
67 <para>This switch enables Unicode properties support.</para>
71 <term><parameter>--enable-pcregrep-lib*</parameter></term>
73 <para>These switches enable the PCRE library to read files compressed
74 with <command>gzip</command> and <command>bzip2</command>.</para>
79 <para>Compile the package:</para>
81 <screen><userinput remap="make">make</userinput></screen>
83 <para>To test the results, issue:</para>
85 <screen><userinput remap="test">make check</userinput></screen>
87 <para>Install the package:</para>
89 <screen><userinput remap="install">make install</userinput></screen>
91 <para>The <command>grep</command> binary will be installed in <filename class="directory">/bin</filename> and will link against the PCRE library; as such,
92 move the library to <filename class="directory">/lib</filename>:</para>
94 <screen><userinput remap="install">mv -v /usr/lib/libpcre.so.* /lib/
95 ln -v -sf ../../lib/libpcre.so.0 /usr/lib/libpcre.so</userinput></screen>
99 <sect2 id="contents-pcre" role="content">
100 <title>Contents of PCRE</title>
103 <segtitle>Installed programs</segtitle>
104 <segtitle>Installed libraries</segtitle>
105 <segtitle>Installed directories</segtitle>
108 <seg>pcregrep, pcretest, and pcre-config</seg>
109 <seg>libpcre.{a,so}, libpcrecpp.{a,so} and libpcreposix.{a,so}</seg>
110 <seg>/usr/share/doc/pcre-&pcre-version;</seg>
115 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
116 <?dbfo list-presentation="list"?>
117 <?dbhtml list-presentation="table"?>
119 <varlistentry id="pcregrep">
120 <term><command>pcregrep</command></term>
122 <para>A grep that understands Perl compatible regular
124 <indexterm zone="ch-system-pcre pcregrep">
125 <primary sortas="b-pcre">pcregrep</primary>
130 <varlistentry id="pcretest">
131 <term><command>pcretest</command></term>
133 <para>Tests a Perl compatible regular expression</para>
134 <indexterm zone="ch-system-pcre pcretest">
135 <primary sortas="b-pcretest">pcretest</primary>
140 <varlistentry id="pcre-config">
141 <term><command>pcre-config</command></term>
143 <para>Used during the compilation process of programs linking to the
144 PCRE libraries</para>
145 <indexterm zone="ch-system-pcre pcre-config">
146 <primary sortas="b-pcre-config">pcre-config</primary>
151 <varlistentry id="libpcre">
152 <term><filename class="libraryfile">libpcre</filename></term>
154 <para>Provides functions useful for working with regular
156 <indexterm zone="ch-system-pcre libpcre">
157 <primary sortas="c-libpcre">libpcre</primary>
162 <varlistentry id="libpcrecpp">
163 <term><filename class="libraryfile">libpcrecpp</filename></term>
165 <para>Provides C++ wrapper functions for the libpcre library</para>
166 <indexterm zone="ch-system-pcre libpcrecpp">
167 <primary sortas="c-libpcrecpp">libpcrecpp</primary>
172 <varlistentry id="libpcreposix">
173 <term><filename class="libraryfile">libpcreposix</filename></term>
175 <para>Provides wrapper functions based on the POSIX regular expression
177 <indexterm zone="ch-system-pcre libpcreposix">
178 <primary sortas="c-libpcreposix">libpcreposix</primary>