[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 |
|
---|
[e924583] | 7 | <!ENTITY pcre-download-http "http://downloads.sourceforge.net/pcre/pcre-&pcre-version;.tar.bz2">
|
---|
[aff23e0e] | 8 | <!ENTITY pcre-download-ftp "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-&pcre-version;.tar.bz2">
|
---|
[e924583] | 9 | <!ENTITY pcre-md5sum "2af38e083fb90ef60fa9eda7cc290e86">
|
---|
| 10 | <!ENTITY pcre-size "780 KB">
|
---|
[aff23e0e] | 11 | <!ENTITY pcre-buildsize "11 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 |
|
---|
[469ad5d0] | 32 | <para>The <application>PCRE</application> package contains
|
---|
| 33 | <application>Perl</application> Compatible Regular Expression
|
---|
| 34 | libraries. These are useful for implementing regular expression pattern
|
---|
| 35 | matching using the same syntax and semantics as
|
---|
| 36 | <application>Perl</application> 5.</para>
|
---|
[4c3474fe] | 37 |
|
---|
[469ad5d0] | 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (HTTP): <ulink url="&pcre-download-http;"/></para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download (FTP): <ulink url="&pcre-download-ftp;"/></para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download MD5 sum: &pcre-md5sum;</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download size: &pcre-size;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated disk space required: &pcre-buildsize;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Estimated build time: &pcre-time;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | </itemizedlist>
|
---|
[4c3474fe] | 59 |
|
---|
[e924583] | 60 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 61 | <itemizedlist spacing='compact'>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>Required Patch: <ulink
|
---|
| 64 | url="&patch-root;/pcre-&pcre-version;-abi_breakage-1.patch"/></para>
|
---|
| 65 | </listitem>
|
---|
| 66 | </itemizedlist>
|
---|
| 67 |
|
---|
[1039de3] | 68 | <para condition="html" role="usernotes">User Notes:
|
---|
| 69 | <ulink url="&blfs-wiki;/pcre"/></para>
|
---|
| 70 |
|
---|
[469ad5d0] | 71 | </sect2>
|
---|
[4c3474fe] | 72 |
|
---|
[469ad5d0] | 73 | <sect2 role="installation">
|
---|
| 74 | <title>Installation of PCRE</title>
|
---|
| 75 |
|
---|
[74390482] | 76 | <para>Install <application>PCRE</application> by running
|
---|
[469ad5d0] | 77 | the following commands:</para>
|
---|
| 78 |
|
---|
[e924583] | 79 | <screen><userinput>patch -Np1 -i ../pcre-&pcre-version;-abi_breakage-1.patch &&
|
---|
| 80 | ./configure --prefix=/usr \
|
---|
[116854c] | 81 | --docdir=/usr/share/doc/pcre-&pcre-version; \
|
---|
[e924583] | 82 | --enable-utf8 \
|
---|
| 83 | --enable-pcregrep-libz \
|
---|
| 84 | --enable-pcregrep-libbz2 &&
|
---|
[469ad5d0] | 85 | make</userinput></screen>
|
---|
[4fa8bf55] | 86 |
|
---|
[7020ee4] | 87 | <para>To test the results, issue: <command>make check</command>. Note:
|
---|
| 88 | The third set of the tests cannot be run if the "fr_FR" locale is missing
|
---|
| 89 | from the system.</para>
|
---|
[4c3474fe] | 90 |
|
---|
[469ad5d0] | 91 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[4c3474fe] | 92 |
|
---|
[116854c] | 93 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[469ad5d0] | 94 |
|
---|
[4c288b0] | 95 | <para>If you reinstall <application>Grep</application> after installing
|
---|
| 96 | <application>PCRE</application>, <application>Grep</application> will get
|
---|
| 97 | linked against <application>PCRE</application> and may cause problems if
|
---|
[74390482] | 98 | <filename class="directory">/usr</filename> is a separate mount point. To avoid
|
---|
| 99 | this, either pass the option <option>--disable-perl-regexp</option> when executing
|
---|
[4c288b0] | 100 | <command>./configure</command> for <application>Grep</application> or move
|
---|
[74390482] | 101 | <filename class="libraryfile">libpcre</filename> to <filename
|
---|
[469ad5d0] | 102 | class="directory">/lib</filename> as follows.</para>
|
---|
| 103 |
|
---|
| 104 | <screen role="root"><userinput>mv -v /usr/lib/libpcre.so.* /lib/ &&
|
---|
| 105 | ln -v -sf ../../lib/libpcre.so.0 /usr/lib/libpcre.so</userinput></screen>
|
---|
[4c3474fe] | 106 |
|
---|
[469ad5d0] | 107 | </sect2>
|
---|
[4c3474fe] | 108 |
|
---|
[469ad5d0] | 109 | <sect2 role="commands">
|
---|
| 110 | <title>Command Explanations</title>
|
---|
| 111 |
|
---|
[74390482] | 112 | <para><parameter>--enable-utf8</parameter>: This switch includes the code for
|
---|
[469ad5d0] | 113 | handling UTF-8 character strings in the library.</para>
|
---|
[e924583] | 114 |
|
---|
| 115 | <para><parameter>--enable-unicode-properties</parameter>: This switch
|
---|
| 116 | enables Unicode properties support. Note: You need this switch if you are
|
---|
[d55b6d59] | 117 | going to build <xref linkend="glib2"/> with the
|
---|
[e924583] | 118 | <parameter>--with-pcre=system</parameter> switch.</para>
|
---|
| 119 |
|
---|
| 120 | <para><parameter>--enable-pcregrep-libz</parameter>: This switch adds
|
---|
[d55b6d59] | 121 | support to <command>pcregrep</command> to read
|
---|
| 122 | <filename class='extension'>.gz</filename> compressed files.</para>
|
---|
[e924583] | 123 |
|
---|
| 124 | <para><parameter>--enable-pcregrep-libbz2</parameter>: This switch adds
|
---|
[d55b6d59] | 125 | support to <command>pcregrep</command> to read
|
---|
| 126 | <filename class='extension'>.bz2</filename> compressed files.</para>
|
---|
[4c3474fe] | 127 |
|
---|
[469ad5d0] | 128 | </sect2>
|
---|
[4c3474fe] | 129 |
|
---|
[469ad5d0] | 130 | <sect2 role="content">
|
---|
| 131 | <title>Contents</title>
|
---|
| 132 |
|
---|
| 133 | <segmentedlist>
|
---|
| 134 | <segtitle>Installed Programs</segtitle>
|
---|
| 135 | <segtitle>Installed Libraries</segtitle>
|
---|
[4c288b0] | 136 | <segtitle>Installed Directory</segtitle>
|
---|
[4c3474fe] | 137 |
|
---|
[469ad5d0] | 138 | <seglistitem>
|
---|
| 139 | <seg>pcregrep, pcretest, and pcre-config</seg>
|
---|
[1039de3] | 140 | <seg>libpcre.{so,a}, libpcrecpp.{so,a} and libpcreposix.{so,a}</seg>
|
---|
[61ef9d8d] | 141 | <seg>/usr/share/doc/pcre-&pcre-version;</seg>
|
---|
[469ad5d0] | 142 | </seglistitem>
|
---|
| 143 | </segmentedlist>
|
---|
[4c3474fe] | 144 |
|
---|
[469ad5d0] | 145 | <variablelist>
|
---|
| 146 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 147 | <?dbfo list-presentation="list"?>
|
---|
| 148 | <?dbhtml list-presentation="table"?>
|
---|
[4c3474fe] | 149 |
|
---|
[469ad5d0] | 150 | <varlistentry id="pcregrep">
|
---|
| 151 | <term><command>pcregrep</command></term>
|
---|
| 152 | <listitem>
|
---|
[74390482] | 153 | <para>is a <command>grep</command> that understands
|
---|
[469ad5d0] | 154 | <application>Perl</application> compatible regular expressions.</para>
|
---|
| 155 | <indexterm zone="pcre pcregrep">
|
---|
| 156 | <primary sortas="b-pcregrep">pcregrep</primary>
|
---|
| 157 | </indexterm>
|
---|
| 158 | </listitem>
|
---|
| 159 | </varlistentry>
|
---|
[4c3474fe] | 160 |
|
---|
[469ad5d0] | 161 | <varlistentry id="pcretest">
|
---|
| 162 | <term><command>pcretest</command></term>
|
---|
| 163 | <listitem>
|
---|
[74390482] | 164 | <para>can test a <application>Perl</application> compatible
|
---|
[469ad5d0] | 165 | regular expression.</para>
|
---|
| 166 | <indexterm zone="pcre pcretest">
|
---|
| 167 | <primary sortas="b-pcretest">pcretest</primary>
|
---|
| 168 | </indexterm>
|
---|
| 169 | </listitem>
|
---|
| 170 | </varlistentry>
|
---|
[4c3474fe] | 171 |
|
---|
[469ad5d0] | 172 | <varlistentry id="pcre-config">
|
---|
| 173 | <term><command>pcre-config</command></term>
|
---|
| 174 | <listitem>
|
---|
[74390482] | 175 | <para>is used during the compile process of programs linking to
|
---|
[469ad5d0] | 176 | the <application>PCRE</application> libraries.</para>
|
---|
| 177 | <indexterm zone="pcre pcre-config">
|
---|
| 178 | <primary sortas="b-pcre-config">pcre-config</primary>
|
---|
| 179 | </indexterm>
|
---|
| 180 | </listitem>
|
---|
| 181 | </varlistentry>
|
---|
[4c3474fe] | 182 |
|
---|
[469ad5d0] | 183 | </variablelist>
|
---|
| 184 |
|
---|
| 185 | </sect2>
|
---|
[f45b1953] | 186 |
|
---|
| 187 | </sect1>
|
---|