[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">
|
---|
| 9 | <!ENTITY pcre-md5sum "1c9a276af932b5599157f96e945391f0">
|
---|
[dda9e84] | 10 | <!ENTITY pcre-size "1.2 MB">
|
---|
[3861ffb] | 11 | <!ENTITY pcre-buildsize "13 MB">
|
---|
| 12 | <!ENTITY pcre-time "0.2 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 |
|
---|
[ed3c954] | 40 | &lfs72_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 |
|
---|
[1039de3] | 76 | <para condition="html" role="usernotes">User Notes:
|
---|
[ea16306] | 77 | <ulink url="&blfs-wiki;/pcre"/>
|
---|
| 78 | </para>
|
---|
[469ad5d0] | 79 | </sect2>
|
---|
[4c3474fe] | 80 |
|
---|
[469ad5d0] | 81 | <sect2 role="installation">
|
---|
| 82 | <title>Installation of PCRE</title>
|
---|
| 83 |
|
---|
[ea16306] | 84 | <para>
|
---|
| 85 | Install <application>PCRE</application> by running
|
---|
| 86 | the following commands:
|
---|
| 87 | </para>
|
---|
| 88 |
|
---|
| 89 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 90 | --docdir=/usr/share/doc/pcre-&pcre-version; \
|
---|
| 91 | --enable-utf \
|
---|
| 92 | --enable-unicode-properties \
|
---|
| 93 | --enable-pcregrep-libz \
|
---|
| 94 | --enable-pcregrep-libbz2 \
|
---|
| 95 | --disable-static &&
|
---|
[469ad5d0] | 96 | make</userinput></screen>
|
---|
[4fa8bf55] | 97 |
|
---|
[ea16306] | 98 | <para>
|
---|
| 99 | To test the results, issue: <command>make check</command>.
|
---|
| 100 | </para>
|
---|
[4c3474fe] | 101 |
|
---|
[ea16306] | 102 | <para>
|
---|
| 103 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 104 | </para>
|
---|
[4c3474fe] | 105 |
|
---|
[e959f37] | 106 | <screen role="root"><userinput>make install &&
|
---|
[ea16306] | 107 | mv -v /usr/lib/libpcre.so.* /lib &&
|
---|
| 108 | ln -sfv ../../lib/libpcre.so.1.0.1 /usr/lib/libpcre.so</userinput></screen>
|
---|
[e959f37] | 109 |
|
---|
[469ad5d0] | 110 | </sect2>
|
---|
[4c3474fe] | 111 |
|
---|
[469ad5d0] | 112 | <sect2 role="commands">
|
---|
| 113 | <title>Command Explanations</title>
|
---|
| 114 |
|
---|
[ea16306] | 115 | <para>
|
---|
| 116 | <option>--enable-utf</option>: This switch includes the code for
|
---|
| 117 | handling UTF-8 character strings in the library.
|
---|
| 118 | </para>
|
---|
| 119 |
|
---|
| 120 | <para>
|
---|
| 121 | <option>--enable-unicode-properties</option>: This switch enables
|
---|
| 122 | Unicode properties support. Note: You need this switch if you are
|
---|
| 123 | going to build <xref linkend="glib2"/> with the
|
---|
| 124 | <parameter>--with-pcre=system</parameter> switch.
|
---|
| 125 | </para>
|
---|
| 126 |
|
---|
| 127 | <para>
|
---|
| 128 | <option>--enable-pcregrep-libz</option>: This switch adds
|
---|
| 129 | support to <command>pcregrep</command> to read
|
---|
| 130 | <filename class="extension">.gz</filename> compressed files.
|
---|
| 131 | </para>
|
---|
| 132 |
|
---|
| 133 | <para>
|
---|
| 134 | <option>--enable-pcregrep-libbz2</option>: This switch adds
|
---|
| 135 | support to <command>pcregrep</command> to read
|
---|
| 136 | <filename class="extension">.bz2</filename> compressed files.
|
---|
| 137 | </para>
|
---|
| 138 |
|
---|
| 139 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 140 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 141 |
|
---|
| 142 | <para>
|
---|
| 143 | <command>mv -v /usr/lib/libpcre.so.* /lib</command>: Moves
|
---|
| 144 | <application>PCRE</application> library on the root filesystem
|
---|
| 145 | so that it is available in case <command>grep</command>
|
---|
| 146 | gets reinstalled with <application>PCRE</application> support.
|
---|
| 147 | </para>
|
---|
| 148 |
|
---|
[469ad5d0] | 149 | </sect2>
|
---|
[4c3474fe] | 150 |
|
---|
[469ad5d0] | 151 | <sect2 role="content">
|
---|
| 152 | <title>Contents</title>
|
---|
| 153 |
|
---|
| 154 | <segmentedlist>
|
---|
| 155 | <segtitle>Installed Programs</segtitle>
|
---|
| 156 | <segtitle>Installed Libraries</segtitle>
|
---|
[4c288b0] | 157 | <segtitle>Installed Directory</segtitle>
|
---|
[4c3474fe] | 158 |
|
---|
[469ad5d0] | 159 | <seglistitem>
|
---|
[ea16306] | 160 | <seg>
|
---|
| 161 | pcregrep, pcretest and pcre-config
|
---|
| 162 | </seg>
|
---|
| 163 | <seg>
|
---|
| 164 | libpcre.so, libpcrecpp.so and libpcreposix.so
|
---|
| 165 | </seg>
|
---|
| 166 | <seg>
|
---|
| 167 | /usr/share/doc/pcre-&pcre-version;
|
---|
| 168 | </seg>
|
---|
[469ad5d0] | 169 | </seglistitem>
|
---|
| 170 | </segmentedlist>
|
---|
[4c3474fe] | 171 |
|
---|
[469ad5d0] | 172 | <variablelist>
|
---|
| 173 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 174 | <?dbfo list-presentation="list"?>
|
---|
| 175 | <?dbhtml list-presentation="table"?>
|
---|
[4c3474fe] | 176 |
|
---|
[469ad5d0] | 177 | <varlistentry id="pcregrep">
|
---|
| 178 | <term><command>pcregrep</command></term>
|
---|
| 179 | <listitem>
|
---|
[ea16306] | 180 | <para>
|
---|
| 181 | is a <command>grep</command> that understands
|
---|
| 182 | <application>Perl</application> compatible regular expressions.
|
---|
| 183 | </para>
|
---|
[469ad5d0] | 184 | <indexterm zone="pcre pcregrep">
|
---|
| 185 | <primary sortas="b-pcregrep">pcregrep</primary>
|
---|
| 186 | </indexterm>
|
---|
| 187 | </listitem>
|
---|
| 188 | </varlistentry>
|
---|
[4c3474fe] | 189 |
|
---|
[469ad5d0] | 190 | <varlistentry id="pcretest">
|
---|
| 191 | <term><command>pcretest</command></term>
|
---|
| 192 | <listitem>
|
---|
[ea16306] | 193 | <para>
|
---|
| 194 | can test a <application>Perl</application> compatible
|
---|
| 195 | regular expression.
|
---|
| 196 | </para>
|
---|
[469ad5d0] | 197 | <indexterm zone="pcre pcretest">
|
---|
| 198 | <primary sortas="b-pcretest">pcretest</primary>
|
---|
| 199 | </indexterm>
|
---|
| 200 | </listitem>
|
---|
| 201 | </varlistentry>
|
---|
[4c3474fe] | 202 |
|
---|
[469ad5d0] | 203 | <varlistentry id="pcre-config">
|
---|
| 204 | <term><command>pcre-config</command></term>
|
---|
| 205 | <listitem>
|
---|
[ea16306] | 206 | <para>
|
---|
| 207 | is used during the compile process of programs linking to
|
---|
| 208 | the <application>PCRE</application> libraries.
|
---|
| 209 | </para>
|
---|
[469ad5d0] | 210 | <indexterm zone="pcre pcre-config">
|
---|
| 211 | <primary sortas="b-pcre-config">pcre-config</primary>
|
---|
| 212 | </indexterm>
|
---|
| 213 | </listitem>
|
---|
| 214 | </varlistentry>
|
---|
[ea16306] | 215 |
|
---|
[469ad5d0] | 216 | </variablelist>
|
---|
[ea16306] | 217 |
|
---|
[469ad5d0] | 218 | </sect2>
|
---|
[ea16306] | 219 |
|
---|
[f45b1953] | 220 | </sect1>
|
---|