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