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