[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 |
|
---|
[116854c] | 84 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[469ad5d0] | 85 | </sect2>
|
---|
[4c3474fe] | 86 |
|
---|
[469ad5d0] | 87 | <sect2 role="commands">
|
---|
| 88 | <title>Command Explanations</title>
|
---|
| 89 |
|
---|
[3861ffb] | 90 | <para><option>--disable-static</option>: This switch prevents the static
|
---|
| 91 | libraries being installed.</para>
|
---|
| 92 |
|
---|
| 93 | <para><option>--libdir=/lib</option>: This option makes it install its
|
---|
| 94 | libraries into /lib. If you reinstall <application>Grep</application> after
|
---|
| 95 | installing <application>PCRE</application>, <application>Grep</application>
|
---|
| 96 | will get linked against <application>PCRE</application> and this may cause
|
---|
| 97 | problems during the boot process if
|
---|
| 98 | <filename class="directory">/usr</filename> is a separate mount
|
---|
| 99 | point. If you have <filename class="directory">/usr/lib</filename> on the
|
---|
| 100 | same partition as <filename class="directory">/lib</filename> you can omit
|
---|
| 101 | this option</para>
|
---|
| 102 |
|
---|
[74390482] | 103 | <para><parameter>--enable-utf8</parameter>: This switch includes the code for
|
---|
[469ad5d0] | 104 | handling UTF-8 character strings in the library.</para>
|
---|
[fd7e0ed6] | 105 |
|
---|
[e924583] | 106 | <para><parameter>--enable-unicode-properties</parameter>: This switch
|
---|
[dfb751b] | 107 | enables Unicode properties support. Note: You need this switch if you are
|
---|
| 108 | going to build <xref linkend="glib2"/> with the
|
---|
| 109 | <parameter>--with-pcre=system</parameter> switch.</para>
|
---|
[fd7e0ed6] | 110 |
|
---|
[e924583] | 111 | <para><parameter>--enable-pcregrep-libz</parameter>: This switch adds
|
---|
[d55b6d59] | 112 | support to <command>pcregrep</command> to read
|
---|
[3861ffb] | 113 | <filename class="extension">.gz</filename> compressed files.</para>
|
---|
[e924583] | 114 |
|
---|
| 115 | <para><parameter>--enable-pcregrep-libbz2</parameter>: This switch adds
|
---|
[d55b6d59] | 116 | support to <command>pcregrep</command> to read
|
---|
[3861ffb] | 117 | <filename class="extension">.bz2</filename> compressed files.</para>
|
---|
[469ad5d0] | 118 | </sect2>
|
---|
[4c3474fe] | 119 |
|
---|
[469ad5d0] | 120 | <sect2 role="content">
|
---|
| 121 | <title>Contents</title>
|
---|
| 122 |
|
---|
| 123 | <segmentedlist>
|
---|
| 124 | <segtitle>Installed Programs</segtitle>
|
---|
| 125 | <segtitle>Installed Libraries</segtitle>
|
---|
[4c288b0] | 126 | <segtitle>Installed Directory</segtitle>
|
---|
[4c3474fe] | 127 |
|
---|
[469ad5d0] | 128 | <seglistitem>
|
---|
| 129 | <seg>pcregrep, pcretest, and pcre-config</seg>
|
---|
[3861ffb] | 130 | <seg>libpcre.so, libpcrecpp.so and libpcreposix.so</seg>
|
---|
[61ef9d8d] | 131 | <seg>/usr/share/doc/pcre-&pcre-version;</seg>
|
---|
[469ad5d0] | 132 | </seglistitem>
|
---|
| 133 | </segmentedlist>
|
---|
[4c3474fe] | 134 |
|
---|
[469ad5d0] | 135 | <variablelist>
|
---|
| 136 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 137 | <?dbfo list-presentation="list"?>
|
---|
| 138 | <?dbhtml list-presentation="table"?>
|
---|
[4c3474fe] | 139 |
|
---|
[469ad5d0] | 140 | <varlistentry id="pcregrep">
|
---|
| 141 | <term><command>pcregrep</command></term>
|
---|
| 142 | <listitem>
|
---|
[74390482] | 143 | <para>is a <command>grep</command> that understands
|
---|
[469ad5d0] | 144 | <application>Perl</application> compatible regular expressions.</para>
|
---|
| 145 | <indexterm zone="pcre pcregrep">
|
---|
| 146 | <primary sortas="b-pcregrep">pcregrep</primary>
|
---|
| 147 | </indexterm>
|
---|
| 148 | </listitem>
|
---|
| 149 | </varlistentry>
|
---|
[4c3474fe] | 150 |
|
---|
[469ad5d0] | 151 | <varlistentry id="pcretest">
|
---|
| 152 | <term><command>pcretest</command></term>
|
---|
| 153 | <listitem>
|
---|
[74390482] | 154 | <para>can test a <application>Perl</application> compatible
|
---|
[469ad5d0] | 155 | regular expression.</para>
|
---|
| 156 | <indexterm zone="pcre pcretest">
|
---|
| 157 | <primary sortas="b-pcretest">pcretest</primary>
|
---|
| 158 | </indexterm>
|
---|
| 159 | </listitem>
|
---|
| 160 | </varlistentry>
|
---|
[4c3474fe] | 161 |
|
---|
[469ad5d0] | 162 | <varlistentry id="pcre-config">
|
---|
| 163 | <term><command>pcre-config</command></term>
|
---|
| 164 | <listitem>
|
---|
[74390482] | 165 | <para>is used during the compile process of programs linking to
|
---|
[469ad5d0] | 166 | the <application>PCRE</application> libraries.</para>
|
---|
| 167 | <indexterm zone="pcre pcre-config">
|
---|
| 168 | <primary sortas="b-pcre-config">pcre-config</primary>
|
---|
| 169 | </indexterm>
|
---|
| 170 | </listitem>
|
---|
| 171 | </varlistentry>
|
---|
| 172 | </variablelist>
|
---|
| 173 | </sect2>
|
---|
[f45b1953] | 174 | </sect1>
|
---|