[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[ecbeb38] | 7 | <!ENTITY pcre-download-http " ">
|
---|
[52d29f7] | 8 | <!ENTITY pcre-download-ftp "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-&pcre-version;.tar.bz2">
|
---|
[ecbeb38] | 9 | <!ENTITY pcre-md5 "813850808894d99fb5b1c41ec6335d4f">
|
---|
[aa96cbbc] | 10 | <!ENTITY pcre-size "465 KB">
|
---|
| 11 | <!ENTITY pcre-buildsize "5.3 MB">
|
---|
| 12 | <!ENTITY pcre-time "0.11 SBU">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[9d0cd203] | 15 | <sect1 id="pcre" xreflabel="PCRE-&pcre-version;">
|
---|
[a0f03b0] | 16 | <sect1info>
|
---|
[5cd0959d] | 17 | <othername>$LastChangedBy$</othername>
|
---|
| 18 | <date>$Date$</date>
|
---|
[a0f03b0] | 19 | </sect1info>
|
---|
[7f72cbf] | 20 | <?dbhtml filename="pcre.html"?>
|
---|
[9d0cd203] | 21 | <title>PCRE-&pcre-version;</title>
|
---|
[aa96cbbc] | 22 | <indexterm zone="pcre">
|
---|
| 23 | <primary sortas="a-PCRE">PCRE</primary></indexterm>
|
---|
[f45b1953] | 24 |
|
---|
[52d29f7] | 25 | <sect2>
|
---|
[aa96cbbc] | 26 | <title>Introduction to
|
---|
| 27 | <application><acronym>PCRE</acronym></application></title>
|
---|
[396508b] | 28 |
|
---|
[52d29f7] | 29 | <para>The <application><acronym>PCRE</acronym></application> package contains
|
---|
| 30 | <application>Perl</application> Compatible Regular Expression
|
---|
| 31 | libraries. These are useful for implementing regular expression pattern
|
---|
| 32 | matching using the same syntax and semantics as
|
---|
| 33 | <application>Perl</application> 5.</para>
|
---|
[396508b] | 34 |
|
---|
[52d29f7] | 35 | <sect3><title>Package information</title>
|
---|
| 36 | <itemizedlist spacing='compact'>
|
---|
| 37 | <listitem><para>Download (HTTP): <ulink
|
---|
| 38 | url="&pcre-download-http;"/></para></listitem>
|
---|
| 39 | <listitem><para>Download (FTP): <ulink
|
---|
| 40 | url="&pcre-download-ftp;"/></para></listitem>
|
---|
[dc2f5ad] | 41 | <listitem><para>Download MD5 Sum: &pcre-md5;</para></listitem>
|
---|
[52d29f7] | 42 | <listitem><para>Download size: &pcre-size;</para></listitem>
|
---|
[396508b] | 43 | <listitem><para>Estimated disk space required:
|
---|
[52d29f7] | 44 | &pcre-buildsize;</para></listitem>
|
---|
| 45 | <listitem><para>Estimated build time:
|
---|
| 46 | &pcre-time;</para></listitem></itemizedlist>
|
---|
| 47 | </sect3>
|
---|
| 48 | </sect2>
|
---|
| 49 |
|
---|
| 50 | <sect2>
|
---|
[aa96cbbc] | 51 | <title>Installation of
|
---|
| 52 | <application><acronym>PCRE</acronym></application></title>
|
---|
[396508b] | 53 |
|
---|
[864b06f4] | 54 | <para>Install <application><acronym>PCRE</acronym></application> by running
|
---|
| 55 | the following commands:</para>
|
---|
[396508b] | 56 |
|
---|
[52d29f7] | 57 | <screen><userinput><command>./configure --prefix=/usr --enable-utf8 &&
|
---|
[aa96cbbc] | 58 | make</command></userinput></screen>
|
---|
| 59 |
|
---|
| 60 | <para>Now, as the root user:</para>
|
---|
| 61 |
|
---|
| 62 | <screen><userinput role='root'><command>make install</command></userinput></screen>
|
---|
[396508b] | 63 |
|
---|
[864b06f4] | 64 | <para>If you reinstall <application>grep</application> after installing
|
---|
| 65 | <application>pcre</application>, <application>grep</application> will get
|
---|
| 66 | linked against <application>pcre</application> and may cause problems if
|
---|
| 67 | <filename>/usr</filename> is a separate mount point. To avoid this, either
|
---|
| 68 | pass the option <emphasis>--disable-perl-regexp</emphasis> when executing
|
---|
| 69 | <command>./configure</command> for <application>grep</application> or move
|
---|
| 70 | <filename>libpcre</filename> to <filename>/lib</filename> as follows.</para>
|
---|
[396508b] | 71 |
|
---|
[aa96cbbc] | 72 | <screen><userinput><command>mv -v /usr/lib/libpcre.so.* /lib/ &&
|
---|
| 73 | ln -v -sf ../../lib/libpcre.so.0 /usr/lib/libpcre.so</command></userinput></screen>
|
---|
[396508b] | 74 |
|
---|
[52d29f7] | 75 | </sect2>
|
---|
[396508b] | 76 |
|
---|
[52d29f7] | 77 | <sect2>
|
---|
| 78 | <title>Command explanations</title>
|
---|
[396508b] | 79 |
|
---|
[864b06f4] | 80 | <para><parameter>--enable-utf8</parameter>: This switch includes the code for
|
---|
| 81 | handling <acronym>UTF</acronym>-8 character strings in the library.</para>
|
---|
[396508b] | 82 |
|
---|
[52d29f7] | 83 | </sect2>
|
---|
| 84 |
|
---|
| 85 | <sect2>
|
---|
| 86 | <title>Contents</title>
|
---|
[396508b] | 87 |
|
---|
[aa96cbbc] | 88 | <segmentedlist>
|
---|
| 89 | <segtitle>Installed Programs</segtitle>
|
---|
| 90 | <segtitle>Installed Libraries</segtitle>
|
---|
| 91 | <segtitle>Installed Directories</segtitle>
|
---|
| 92 |
|
---|
| 93 | <seglistitem>
|
---|
| 94 | <seg>pcregrep, pcretest and pcre-config</seg>
|
---|
| 95 | <seg>libpcre.[so,a] and libpcreposix.[so,a]</seg>
|
---|
| 96 | <seg>None</seg>
|
---|
| 97 | </seglistitem>
|
---|
| 98 | </segmentedlist>
|
---|
| 99 |
|
---|
| 100 | <variablelist>
|
---|
| 101 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 102 | <?dbfo list-presentation="list"?>
|
---|
| 103 |
|
---|
| 104 | <varlistentry id="pcregrep">
|
---|
| 105 | <term><command>pcregrep</command></term>
|
---|
| 106 | <listitem><para>is a <command>grep</command> that understands
|
---|
| 107 | <application>Perl</application> compatible regular expressions.</para>
|
---|
| 108 | <indexterm zone="pcre pcregrep">
|
---|
| 109 | <primary sortas="b-pcregrep">pcregrep</primary>
|
---|
| 110 | </indexterm></listitem>
|
---|
| 111 | </varlistentry>
|
---|
| 112 |
|
---|
| 113 | <varlistentry id="pcretest">
|
---|
| 114 | <term><command>pcretest</command></term>
|
---|
| 115 | <listitem><para>can test a <application>Perl</application> compatible
|
---|
| 116 | regular expression.</para>
|
---|
| 117 | <indexterm zone="pcre pcretest">
|
---|
| 118 | <primary sortas="b-pcretest">pcretest</primary>
|
---|
| 119 | </indexterm></listitem>
|
---|
| 120 | </varlistentry>
|
---|
| 121 |
|
---|
| 122 | <varlistentry id="pcre-config">
|
---|
| 123 | <term><command>pcre-config</command></term>
|
---|
| 124 | <listitem><para>is used during the compile process of programs linking to
|
---|
| 125 | the <application>PCRE</application> libraries.</para>
|
---|
| 126 | <indexterm zone="pcre pcre-config">
|
---|
| 127 | <primary sortas="b-pcre-config">pcre-config</primary>
|
---|
| 128 | </indexterm></listitem>
|
---|
| 129 | </varlistentry>
|
---|
| 130 | </variablelist>
|
---|
[396508b] | 131 |
|
---|
[52d29f7] | 132 | </sect2>
|
---|
[f45b1953] | 133 |
|
---|
| 134 | </sect1>
|
---|
[52d29f7] | 135 |
|
---|