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