[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 |
|
---|
[469ad5d0] | 7 | <!ENTITY pcre-download-http " ">
|
---|
[aff23e0e] | 8 | <!ENTITY pcre-download-ftp "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-&pcre-version;.tar.bz2">
|
---|
| 9 | <!ENTITY pcre-md5sum "53305db73855f1ff155dcd2c05d448d3">
|
---|
| 10 | <!ENTITY pcre-size "738 KB">
|
---|
| 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 |
|
---|
[1039de3] | 60 | <para condition="html" role="usernotes">User Notes:
|
---|
| 61 | <ulink url="&blfs-wiki;/pcre"/></para>
|
---|
| 62 |
|
---|
[469ad5d0] | 63 | </sect2>
|
---|
[4c3474fe] | 64 |
|
---|
[469ad5d0] | 65 | <sect2 role="installation">
|
---|
| 66 | <title>Installation of PCRE</title>
|
---|
| 67 |
|
---|
[74390482] | 68 | <para>Install <application>PCRE</application> by running
|
---|
[469ad5d0] | 69 | the following commands:</para>
|
---|
| 70 |
|
---|
[116854c] | 71 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 72 | --docdir=/usr/share/doc/pcre-&pcre-version; \
|
---|
| 73 | --enable-utf8 &&
|
---|
[469ad5d0] | 74 | make</userinput></screen>
|
---|
[4fa8bf55] | 75 |
|
---|
[aff23e0e] | 76 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
[4c3474fe] | 77 |
|
---|
[469ad5d0] | 78 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[4c3474fe] | 79 |
|
---|
[116854c] | 80 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[469ad5d0] | 81 |
|
---|
[4c288b0] | 82 | <para>If you reinstall <application>Grep</application> after installing
|
---|
| 83 | <application>PCRE</application>, <application>Grep</application> will get
|
---|
| 84 | linked against <application>PCRE</application> and may cause problems if
|
---|
[74390482] | 85 | <filename class="directory">/usr</filename> is a separate mount point. To avoid
|
---|
| 86 | this, either pass the option <option>--disable-perl-regexp</option> when executing
|
---|
[4c288b0] | 87 | <command>./configure</command> for <application>Grep</application> or move
|
---|
[74390482] | 88 | <filename class="libraryfile">libpcre</filename> to <filename
|
---|
[469ad5d0] | 89 | class="directory">/lib</filename> as follows.</para>
|
---|
| 90 |
|
---|
| 91 | <screen role="root"><userinput>mv -v /usr/lib/libpcre.so.* /lib/ &&
|
---|
| 92 | ln -v -sf ../../lib/libpcre.so.0 /usr/lib/libpcre.so</userinput></screen>
|
---|
[4c3474fe] | 93 |
|
---|
[469ad5d0] | 94 | </sect2>
|
---|
[4c3474fe] | 95 |
|
---|
[469ad5d0] | 96 | <sect2 role="commands">
|
---|
| 97 | <title>Command Explanations</title>
|
---|
| 98 |
|
---|
[74390482] | 99 | <para><parameter>--enable-utf8</parameter>: This switch includes the code for
|
---|
[469ad5d0] | 100 | handling UTF-8 character strings in the library.</para>
|
---|
[4c3474fe] | 101 |
|
---|
[469ad5d0] | 102 | </sect2>
|
---|
[4c3474fe] | 103 |
|
---|
[469ad5d0] | 104 | <sect2 role="content">
|
---|
| 105 | <title>Contents</title>
|
---|
| 106 |
|
---|
| 107 | <segmentedlist>
|
---|
| 108 | <segtitle>Installed Programs</segtitle>
|
---|
| 109 | <segtitle>Installed Libraries</segtitle>
|
---|
[4c288b0] | 110 | <segtitle>Installed Directory</segtitle>
|
---|
[4c3474fe] | 111 |
|
---|
[469ad5d0] | 112 | <seglistitem>
|
---|
| 113 | <seg>pcregrep, pcretest, and pcre-config</seg>
|
---|
[1039de3] | 114 | <seg>libpcre.{so,a}, libpcrecpp.{so,a} and libpcreposix.{so,a}</seg>
|
---|
[61ef9d8d] | 115 | <seg>/usr/share/doc/pcre-&pcre-version;</seg>
|
---|
[469ad5d0] | 116 | </seglistitem>
|
---|
| 117 | </segmentedlist>
|
---|
[4c3474fe] | 118 |
|
---|
[469ad5d0] | 119 | <variablelist>
|
---|
| 120 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 121 | <?dbfo list-presentation="list"?>
|
---|
| 122 | <?dbhtml list-presentation="table"?>
|
---|
[4c3474fe] | 123 |
|
---|
[469ad5d0] | 124 | <varlistentry id="pcregrep">
|
---|
| 125 | <term><command>pcregrep</command></term>
|
---|
| 126 | <listitem>
|
---|
[74390482] | 127 | <para>is a <command>grep</command> that understands
|
---|
[469ad5d0] | 128 | <application>Perl</application> compatible regular expressions.</para>
|
---|
| 129 | <indexterm zone="pcre pcregrep">
|
---|
| 130 | <primary sortas="b-pcregrep">pcregrep</primary>
|
---|
| 131 | </indexterm>
|
---|
| 132 | </listitem>
|
---|
| 133 | </varlistentry>
|
---|
[4c3474fe] | 134 |
|
---|
[469ad5d0] | 135 | <varlistentry id="pcretest">
|
---|
| 136 | <term><command>pcretest</command></term>
|
---|
| 137 | <listitem>
|
---|
[74390482] | 138 | <para>can test a <application>Perl</application> compatible
|
---|
[469ad5d0] | 139 | regular expression.</para>
|
---|
| 140 | <indexterm zone="pcre pcretest">
|
---|
| 141 | <primary sortas="b-pcretest">pcretest</primary>
|
---|
| 142 | </indexterm>
|
---|
| 143 | </listitem>
|
---|
| 144 | </varlistentry>
|
---|
[4c3474fe] | 145 |
|
---|
[469ad5d0] | 146 | <varlistentry id="pcre-config">
|
---|
| 147 | <term><command>pcre-config</command></term>
|
---|
| 148 | <listitem>
|
---|
[74390482] | 149 | <para>is used during the compile process of programs linking to
|
---|
[469ad5d0] | 150 | the <application>PCRE</application> libraries.</para>
|
---|
| 151 | <indexterm zone="pcre pcre-config">
|
---|
| 152 | <primary sortas="b-pcre-config">pcre-config</primary>
|
---|
| 153 | </indexterm>
|
---|
| 154 | </listitem>
|
---|
| 155 | </varlistentry>
|
---|
[4c3474fe] | 156 |
|
---|
[469ad5d0] | 157 | </variablelist>
|
---|
| 158 |
|
---|
| 159 | </sect2>
|
---|
[f45b1953] | 160 |
|
---|
| 161 | </sect1>
|
---|