[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 |
|
---|
[3861ffb] | 7 | <!ENTITY pcre-download-http
|
---|
| 8 | "&sourceforge-repo;/pcre/pcre-&pcre-version;.tar.bz2">
|
---|
| 9 | <!ENTITY pcre-download-ftp
|
---|
| 10 | "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-&pcre-version;.tar.bz2">
|
---|
[dda9e84] | 11 | <!ENTITY pcre-md5sum "98e8928cccc945d04279581e778fbdff">
|
---|
| 12 | <!ENTITY pcre-size "1.2 MB">
|
---|
[3861ffb] | 13 | <!ENTITY pcre-buildsize "13 MB">
|
---|
| 14 | <!ENTITY pcre-time "0.2 SBU">
|
---|
[52d29f7] | 15 | ]>
|
---|
| 16 |
|
---|
[9d0cd203] | 17 | <sect1 id="pcre" xreflabel="PCRE-&pcre-version;">
|
---|
[469ad5d0] | 18 | <?dbhtml filename="pcre.html"?>
|
---|
[4c3474fe] | 19 |
|
---|
[469ad5d0] | 20 | <sect1info>
|
---|
| 21 | <othername>$LastChangedBy$</othername>
|
---|
| 22 | <date>$Date$</date>
|
---|
| 23 | </sect1info>
|
---|
[4c3474fe] | 24 |
|
---|
[469ad5d0] | 25 | <title>PCRE-&pcre-version;</title>
|
---|
[4c3474fe] | 26 |
|
---|
[469ad5d0] | 27 | <indexterm zone="pcre">
|
---|
| 28 | <primary sortas="a-PCRE">PCRE</primary>
|
---|
| 29 | </indexterm>
|
---|
| 30 |
|
---|
| 31 | <sect2 role="package">
|
---|
| 32 | <title>Introduction to PCRE</title>
|
---|
[4c3474fe] | 33 |
|
---|
[469ad5d0] | 34 | <para>The <application>PCRE</application> package contains
|
---|
| 35 | <application>Perl</application> Compatible Regular Expression
|
---|
| 36 | libraries. These are useful for implementing regular expression pattern
|
---|
| 37 | matching using the same syntax and semantics as
|
---|
| 38 | <application>Perl</application> 5.</para>
|
---|
[4c3474fe] | 39 |
|
---|
[4c77a949] | 40 | &lfs71_checked;
|
---|
[7f4cdbc0] | 41 |
|
---|
[469ad5d0] | 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
[3861ffb] | 44 | <!-- 8.30 isn't on sourceforge yet
|
---|
[469ad5d0] | 45 | <listitem>
|
---|
| 46 | <para>Download (HTTP): <ulink url="&pcre-download-http;"/></para>
|
---|
[3861ffb] | 47 | </listitem> -->
|
---|
[469ad5d0] | 48 | <listitem>
|
---|
| 49 | <para>Download (FTP): <ulink url="&pcre-download-ftp;"/></para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download MD5 sum: &pcre-md5sum;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Download size: &pcre-size;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Estimated disk space required: &pcre-buildsize;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>Estimated build time: &pcre-time;</para>
|
---|
| 62 | </listitem>
|
---|
| 63 | </itemizedlist>
|
---|
[4c3474fe] | 64 |
|
---|
[1039de3] | 65 | <para condition="html" role="usernotes">User Notes:
|
---|
| 66 | <ulink url="&blfs-wiki;/pcre"/></para>
|
---|
[469ad5d0] | 67 | </sect2>
|
---|
[4c3474fe] | 68 |
|
---|
[469ad5d0] | 69 | <sect2 role="installation">
|
---|
| 70 | <title>Installation of PCRE</title>
|
---|
| 71 |
|
---|
[74390482] | 72 | <para>Install <application>PCRE</application> by running
|
---|
[469ad5d0] | 73 | the following commands:</para>
|
---|
| 74 |
|
---|
[3861ffb] | 75 | <screen><userinput>./configure --prefix=/usr --disable-static --libdir=/lib \
|
---|
| 76 | --docdir=/usr/share/doc/pcre-&pcre-version; --enable-utf8 --enable-unicode-properties \
|
---|
| 77 | --enable-pcregrep-libz --enable-pcregrep-libbz2 &&
|
---|
[469ad5d0] | 78 | make</userinput></screen>
|
---|
[4fa8bf55] | 79 |
|
---|
[b690f72] | 80 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
[4c3474fe] | 81 |
|
---|
[469ad5d0] | 82 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[4c3474fe] | 83 |
|
---|
[e959f37] | 84 | <screen role="root"><userinput>make install &&
|
---|
| 85 | mv /lib/pkgconfig/libpcre*.pc /usr/lib/pkgconfig</userinput></screen>
|
---|
| 86 |
|
---|
[469ad5d0] | 87 | </sect2>
|
---|
[4c3474fe] | 88 |
|
---|
[469ad5d0] | 89 | <sect2 role="commands">
|
---|
| 90 | <title>Command Explanations</title>
|
---|
| 91 |
|
---|
[3861ffb] | 92 | <para><option>--disable-static</option>: This switch prevents the static
|
---|
| 93 | libraries being installed.</para>
|
---|
| 94 |
|
---|
| 95 | <para><option>--libdir=/lib</option>: This option makes it install its
|
---|
| 96 | libraries into /lib. If you reinstall <application>Grep</application> after
|
---|
| 97 | installing <application>PCRE</application>, <application>Grep</application>
|
---|
| 98 | will get linked against <application>PCRE</application> and this may cause
|
---|
| 99 | problems during the boot process if
|
---|
| 100 | <filename class="directory">/usr</filename> is a separate mount
|
---|
| 101 | point. If you have <filename class="directory">/usr/lib</filename> on the
|
---|
| 102 | same partition as <filename class="directory">/lib</filename> you can omit
|
---|
| 103 | this option</para>
|
---|
| 104 |
|
---|
[74390482] | 105 | <para><parameter>--enable-utf8</parameter>: This switch includes the code for
|
---|
[469ad5d0] | 106 | handling UTF-8 character strings in the library.</para>
|
---|
[fd7e0ed6] | 107 |
|
---|
[e924583] | 108 | <para><parameter>--enable-unicode-properties</parameter>: This switch
|
---|
[dfb751b] | 109 | enables Unicode properties support. Note: You need this switch if you are
|
---|
| 110 | going to build <xref linkend="glib2"/> with the
|
---|
| 111 | <parameter>--with-pcre=system</parameter> switch.</para>
|
---|
[fd7e0ed6] | 112 |
|
---|
[e924583] | 113 | <para><parameter>--enable-pcregrep-libz</parameter>: This switch adds
|
---|
[d55b6d59] | 114 | support to <command>pcregrep</command> to read
|
---|
[3861ffb] | 115 | <filename class="extension">.gz</filename> compressed files.</para>
|
---|
[e924583] | 116 |
|
---|
| 117 | <para><parameter>--enable-pcregrep-libbz2</parameter>: This switch adds
|
---|
[d55b6d59] | 118 | support to <command>pcregrep</command> to read
|
---|
[3861ffb] | 119 | <filename class="extension">.bz2</filename> compressed files.</para>
|
---|
[469ad5d0] | 120 | </sect2>
|
---|
[4c3474fe] | 121 |
|
---|
[469ad5d0] | 122 | <sect2 role="content">
|
---|
| 123 | <title>Contents</title>
|
---|
| 124 |
|
---|
| 125 | <segmentedlist>
|
---|
| 126 | <segtitle>Installed Programs</segtitle>
|
---|
| 127 | <segtitle>Installed Libraries</segtitle>
|
---|
[4c288b0] | 128 | <segtitle>Installed Directory</segtitle>
|
---|
[4c3474fe] | 129 |
|
---|
[469ad5d0] | 130 | <seglistitem>
|
---|
| 131 | <seg>pcregrep, pcretest, and pcre-config</seg>
|
---|
[3861ffb] | 132 | <seg>libpcre.so, libpcrecpp.so and libpcreposix.so</seg>
|
---|
[61ef9d8d] | 133 | <seg>/usr/share/doc/pcre-&pcre-version;</seg>
|
---|
[469ad5d0] | 134 | </seglistitem>
|
---|
| 135 | </segmentedlist>
|
---|
[4c3474fe] | 136 |
|
---|
[469ad5d0] | 137 | <variablelist>
|
---|
| 138 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 139 | <?dbfo list-presentation="list"?>
|
---|
| 140 | <?dbhtml list-presentation="table"?>
|
---|
[4c3474fe] | 141 |
|
---|
[469ad5d0] | 142 | <varlistentry id="pcregrep">
|
---|
| 143 | <term><command>pcregrep</command></term>
|
---|
| 144 | <listitem>
|
---|
[74390482] | 145 | <para>is a <command>grep</command> that understands
|
---|
[469ad5d0] | 146 | <application>Perl</application> compatible regular expressions.</para>
|
---|
| 147 | <indexterm zone="pcre pcregrep">
|
---|
| 148 | <primary sortas="b-pcregrep">pcregrep</primary>
|
---|
| 149 | </indexterm>
|
---|
| 150 | </listitem>
|
---|
| 151 | </varlistentry>
|
---|
[4c3474fe] | 152 |
|
---|
[469ad5d0] | 153 | <varlistentry id="pcretest">
|
---|
| 154 | <term><command>pcretest</command></term>
|
---|
| 155 | <listitem>
|
---|
[74390482] | 156 | <para>can test a <application>Perl</application> compatible
|
---|
[469ad5d0] | 157 | regular expression.</para>
|
---|
| 158 | <indexterm zone="pcre pcretest">
|
---|
| 159 | <primary sortas="b-pcretest">pcretest</primary>
|
---|
| 160 | </indexterm>
|
---|
| 161 | </listitem>
|
---|
| 162 | </varlistentry>
|
---|
[4c3474fe] | 163 |
|
---|
[469ad5d0] | 164 | <varlistentry id="pcre-config">
|
---|
| 165 | <term><command>pcre-config</command></term>
|
---|
| 166 | <listitem>
|
---|
[74390482] | 167 | <para>is used during the compile process of programs linking to
|
---|
[469ad5d0] | 168 | the <application>PCRE</application> libraries.</para>
|
---|
| 169 | <indexterm zone="pcre pcre-config">
|
---|
| 170 | <primary sortas="b-pcre-config">pcre-config</primary>
|
---|
| 171 | </indexterm>
|
---|
| 172 | </listitem>
|
---|
| 173 | </varlistentry>
|
---|
| 174 | </variablelist>
|
---|
| 175 | </sect2>
|
---|
[f45b1953] | 176 | </sect1>
|
---|