[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 |
|
---|
[fce275e] | 7 | <!ENTITY pcre-download-http "&sourceforge-repo;/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">
|
---|
[dfb751b] | 9 | <!ENTITY pcre-md5sum "141132d6af14dccc7b08fa797e4fd441">
|
---|
| 10 | <!ENTITY pcre-size "821 KB">
|
---|
| 11 | <!ENTITY pcre-buildsize "10 MB">
|
---|
[aff23e0e] | 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 |
|
---|
[dfb751b] | 60 | <!-- <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
[e924583] | 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>
|
---|
[96008ca] | 66 | <listitem>
|
---|
| 67 | <para>Required Patch: <ulink
|
---|
| 68 | url="&patch-root;/pcre-&pcre-version;-security_fix-1.patch"/></para>
|
---|
| 69 | </listitem>
|
---|
[dfb751b] | 70 | </itemizedlist> -->
|
---|
[fd7e0ed6] | 71 |
|
---|
[1039de3] | 72 | <para condition="html" role="usernotes">User Notes:
|
---|
| 73 | <ulink url="&blfs-wiki;/pcre"/></para>
|
---|
| 74 |
|
---|
[469ad5d0] | 75 | </sect2>
|
---|
[4c3474fe] | 76 |
|
---|
[469ad5d0] | 77 | <sect2 role="installation">
|
---|
| 78 | <title>Installation of PCRE</title>
|
---|
| 79 |
|
---|
[74390482] | 80 | <para>Install <application>PCRE</application> by running
|
---|
[469ad5d0] | 81 | the following commands:</para>
|
---|
| 82 |
|
---|
[539d6986] | 83 | <screen><userinput>./configure --prefix=/usr \
|
---|
[116854c] | 84 | --docdir=/usr/share/doc/pcre-&pcre-version; \
|
---|
[dfb751b] | 85 | --enable-utf8 --enable-unicode-properties \
|
---|
[e924583] | 86 | --enable-pcregrep-libz \
|
---|
| 87 | --enable-pcregrep-libbz2 &&
|
---|
[469ad5d0] | 88 | make</userinput></screen>
|
---|
[4fa8bf55] | 89 |
|
---|
[7020ee4] | 90 | <para>To test the results, issue: <command>make check</command>. Note:
|
---|
| 91 | The third set of the tests cannot be run if the "fr_FR" locale is missing
|
---|
| 92 | from the system.</para>
|
---|
[4c3474fe] | 93 |
|
---|
[469ad5d0] | 94 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[4c3474fe] | 95 |
|
---|
[116854c] | 96 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[469ad5d0] | 97 |
|
---|
[4c288b0] | 98 | <para>If you reinstall <application>Grep</application> after installing
|
---|
| 99 | <application>PCRE</application>, <application>Grep</application> will get
|
---|
| 100 | linked against <application>PCRE</application> and may cause problems if
|
---|
[74390482] | 101 | <filename class="directory">/usr</filename> is a separate mount point. To avoid
|
---|
| 102 | this, either pass the option <option>--disable-perl-regexp</option> when executing
|
---|
[4c288b0] | 103 | <command>./configure</command> for <application>Grep</application> or move
|
---|
[74390482] | 104 | <filename class="libraryfile">libpcre</filename> to <filename
|
---|
[469ad5d0] | 105 | class="directory">/lib</filename> as follows.</para>
|
---|
| 106 |
|
---|
| 107 | <screen role="root"><userinput>mv -v /usr/lib/libpcre.so.* /lib/ &&
|
---|
| 108 | ln -v -sf ../../lib/libpcre.so.0 /usr/lib/libpcre.so</userinput></screen>
|
---|
[4c3474fe] | 109 |
|
---|
[469ad5d0] | 110 | </sect2>
|
---|
[4c3474fe] | 111 |
|
---|
[469ad5d0] | 112 | <sect2 role="commands">
|
---|
| 113 | <title>Command Explanations</title>
|
---|
| 114 |
|
---|
[74390482] | 115 | <para><parameter>--enable-utf8</parameter>: This switch includes the code for
|
---|
[469ad5d0] | 116 | handling UTF-8 character strings in the library.</para>
|
---|
[fd7e0ed6] | 117 |
|
---|
[e924583] | 118 | <para><parameter>--enable-unicode-properties</parameter>: This switch
|
---|
[dfb751b] | 119 | enables Unicode properties support. Note: You need this switch if you are
|
---|
| 120 | going to build <xref linkend="glib2"/> with the
|
---|
| 121 | <parameter>--with-pcre=system</parameter> switch.</para>
|
---|
[fd7e0ed6] | 122 |
|
---|
[e924583] | 123 | <para><parameter>--enable-pcregrep-libz</parameter>: This switch adds
|
---|
[d55b6d59] | 124 | support to <command>pcregrep</command> to read
|
---|
| 125 | <filename class='extension'>.gz</filename> compressed files.</para>
|
---|
[e924583] | 126 |
|
---|
| 127 | <para><parameter>--enable-pcregrep-libbz2</parameter>: This switch adds
|
---|
[d55b6d59] | 128 | support to <command>pcregrep</command> to read
|
---|
| 129 | <filename class='extension'>.bz2</filename> compressed files.</para>
|
---|
[4c3474fe] | 130 |
|
---|
[dfb751b] | 131 | <para><parameter>--enable-shared --disable-static</parameter>: This pair
|
---|
| 132 | of switches prevents the static libraries in this package from being
|
---|
| 133 | built and installed.</para>
|
---|
| 134 |
|
---|
[469ad5d0] | 135 | </sect2>
|
---|
[4c3474fe] | 136 |
|
---|
[469ad5d0] | 137 | <sect2 role="content">
|
---|
| 138 | <title>Contents</title>
|
---|
| 139 |
|
---|
| 140 | <segmentedlist>
|
---|
| 141 | <segtitle>Installed Programs</segtitle>
|
---|
| 142 | <segtitle>Installed Libraries</segtitle>
|
---|
[4c288b0] | 143 | <segtitle>Installed Directory</segtitle>
|
---|
[4c3474fe] | 144 |
|
---|
[469ad5d0] | 145 | <seglistitem>
|
---|
| 146 | <seg>pcregrep, pcretest, and pcre-config</seg>
|
---|
[1039de3] | 147 | <seg>libpcre.{so,a}, libpcrecpp.{so,a} and libpcreposix.{so,a}</seg>
|
---|
[61ef9d8d] | 148 | <seg>/usr/share/doc/pcre-&pcre-version;</seg>
|
---|
[469ad5d0] | 149 | </seglistitem>
|
---|
| 150 | </segmentedlist>
|
---|
[4c3474fe] | 151 |
|
---|
[469ad5d0] | 152 | <variablelist>
|
---|
| 153 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 154 | <?dbfo list-presentation="list"?>
|
---|
| 155 | <?dbhtml list-presentation="table"?>
|
---|
[4c3474fe] | 156 |
|
---|
[469ad5d0] | 157 | <varlistentry id="pcregrep">
|
---|
| 158 | <term><command>pcregrep</command></term>
|
---|
| 159 | <listitem>
|
---|
[74390482] | 160 | <para>is a <command>grep</command> that understands
|
---|
[469ad5d0] | 161 | <application>Perl</application> compatible regular expressions.</para>
|
---|
| 162 | <indexterm zone="pcre pcregrep">
|
---|
| 163 | <primary sortas="b-pcregrep">pcregrep</primary>
|
---|
| 164 | </indexterm>
|
---|
| 165 | </listitem>
|
---|
| 166 | </varlistentry>
|
---|
[4c3474fe] | 167 |
|
---|
[469ad5d0] | 168 | <varlistentry id="pcretest">
|
---|
| 169 | <term><command>pcretest</command></term>
|
---|
| 170 | <listitem>
|
---|
[74390482] | 171 | <para>can test a <application>Perl</application> compatible
|
---|
[469ad5d0] | 172 | regular expression.</para>
|
---|
| 173 | <indexterm zone="pcre pcretest">
|
---|
| 174 | <primary sortas="b-pcretest">pcretest</primary>
|
---|
| 175 | </indexterm>
|
---|
| 176 | </listitem>
|
---|
| 177 | </varlistentry>
|
---|
[4c3474fe] | 178 |
|
---|
[469ad5d0] | 179 | <varlistentry id="pcre-config">
|
---|
| 180 | <term><command>pcre-config</command></term>
|
---|
| 181 | <listitem>
|
---|
[74390482] | 182 | <para>is used during the compile process of programs linking to
|
---|
[469ad5d0] | 183 | the <application>PCRE</application> libraries.</para>
|
---|
| 184 | <indexterm zone="pcre pcre-config">
|
---|
| 185 | <primary sortas="b-pcre-config">pcre-config</primary>
|
---|
| 186 | </indexterm>
|
---|
| 187 | </listitem>
|
---|
| 188 | </varlistentry>
|
---|
[4c3474fe] | 189 |
|
---|
[469ad5d0] | 190 | </variablelist>
|
---|
| 191 |
|
---|
| 192 | </sect2>
|
---|
[f45b1953] | 193 |
|
---|
| 194 | </sect1>
|
---|