[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 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">
|
---|
| 10 | <!ENTITY pcre-size "460 KB">
|
---|
[52d29f7] | 11 | <!ENTITY pcre-buildsize "3.5 MB">
|
---|
| 12 | <!ENTITY pcre-time "0.08 SBU">
|
---|
| 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>
|
---|
[f45b1953] | 22 |
|
---|
[52d29f7] | 23 | <sect2>
|
---|
| 24 | <title>Introduction to <application><acronym>PCRE</acronym></application></title>
|
---|
[396508b] | 25 |
|
---|
[52d29f7] | 26 | <para>The <application><acronym>PCRE</acronym></application> package contains
|
---|
| 27 | <application>Perl</application> Compatible Regular Expression
|
---|
| 28 | libraries. These are useful for implementing regular expression pattern
|
---|
| 29 | matching using the same syntax and semantics as
|
---|
| 30 | <application>Perl</application> 5.</para>
|
---|
[396508b] | 31 |
|
---|
[52d29f7] | 32 | <sect3><title>Package information</title>
|
---|
| 33 | <itemizedlist spacing='compact'>
|
---|
| 34 | <listitem><para>Download (HTTP): <ulink
|
---|
| 35 | url="&pcre-download-http;"/></para></listitem>
|
---|
| 36 | <listitem><para>Download (FTP): <ulink
|
---|
| 37 | url="&pcre-download-ftp;"/></para></listitem>
|
---|
[dc2f5ad] | 38 | <listitem><para>Download MD5 Sum: &pcre-md5;</para></listitem>
|
---|
[52d29f7] | 39 | <listitem><para>Download size: &pcre-size;</para></listitem>
|
---|
[396508b] | 40 | <listitem><para>Estimated disk space required:
|
---|
[52d29f7] | 41 | &pcre-buildsize;</para></listitem>
|
---|
| 42 | <listitem><para>Estimated build time:
|
---|
| 43 | &pcre-time;</para></listitem></itemizedlist>
|
---|
| 44 | </sect3>
|
---|
| 45 | </sect2>
|
---|
| 46 |
|
---|
| 47 | <sect2>
|
---|
| 48 | <title>Installation of <application><acronym>PCRE</acronym></application></title>
|
---|
[396508b] | 49 |
|
---|
[864b06f4] | 50 | <para>Install <application><acronym>PCRE</acronym></application> by running
|
---|
| 51 | the following commands:</para>
|
---|
[396508b] | 52 |
|
---|
[52d29f7] | 53 | <screen><userinput><command>./configure --prefix=/usr --enable-utf8 &&
|
---|
| 54 | make &&
|
---|
| 55 | make install</command></userinput></screen>
|
---|
[396508b] | 56 |
|
---|
[864b06f4] | 57 | <para>If you reinstall <application>grep</application> after installing
|
---|
| 58 | <application>pcre</application>, <application>grep</application> will get
|
---|
| 59 | linked against <application>pcre</application> and may cause problems if
|
---|
| 60 | <filename>/usr</filename> is a separate mount point. To avoid this, either
|
---|
| 61 | pass the option <emphasis>--disable-perl-regexp</emphasis> when executing
|
---|
| 62 | <command>./configure</command> for <application>grep</application> or move
|
---|
| 63 | <filename>libpcre</filename> to <filename>/lib</filename> as follows.</para>
|
---|
[396508b] | 64 |
|
---|
[52d29f7] | 65 | <screen><userinput><command>mv /usr/lib/libpcre.so.* /lib/ &&
|
---|
[396508b] | 66 | ln -sf ../../lib/libpcre.so.0 /usr/lib/libpcre.so</command></userinput></screen>
|
---|
| 67 |
|
---|
[52d29f7] | 68 | </sect2>
|
---|
[396508b] | 69 |
|
---|
[52d29f7] | 70 | <sect2>
|
---|
| 71 | <title>Command explanations</title>
|
---|
[396508b] | 72 |
|
---|
[864b06f4] | 73 | <para><parameter>--enable-utf8</parameter>: This switch includes the code for
|
---|
| 74 | handling <acronym>UTF</acronym>-8 character strings in the library.</para>
|
---|
[396508b] | 75 |
|
---|
[52d29f7] | 76 | </sect2>
|
---|
| 77 |
|
---|
| 78 | <sect2>
|
---|
| 79 | <title>Contents</title>
|
---|
[396508b] | 80 |
|
---|
[52d29f7] | 81 | <para>The <application><acronym>PCRE</acronym></application> package contains
|
---|
| 82 | the <filename class='libraryfile'>libpcre</filename> libraries,
|
---|
| 83 | <command>pcregrep</command>, <command>pcretest</command> and
|
---|
| 84 | <command>pcre-config</command>.</para>
|
---|
[396508b] | 85 |
|
---|
[52d29f7] | 86 | </sect2>
|
---|
[396508b] | 87 |
|
---|
[52d29f7] | 88 | <sect2><title>Description</title>
|
---|
[396508b] | 89 |
|
---|
[52d29f7] | 90 | <sect3><title>pcregrep</title>
|
---|
| 91 | <para><command>pcregrep</command> is a <command>grep</command> that understands
|
---|
| 92 | <application>Perl</application> compatible regular expressions.</para></sect3>
|
---|
[396508b] | 93 |
|
---|
[52d29f7] | 94 | <sect3><title>pcretest</title>
|
---|
| 95 | <para><command>pcretest</command> can test your
|
---|
| 96 | <application>Perl</application> compatible regular expression.</para></sect3>
|
---|
[396508b] | 97 |
|
---|
[52d29f7] | 98 | <sect3><title>pcre-config</title>
|
---|
| 99 | <para><command>pcre-config</command> is used during the compile process of
|
---|
| 100 | programs linking to this library.</para></sect3>
|
---|
[396508b] | 101 |
|
---|
[52d29f7] | 102 | </sect2>
|
---|
[f45b1953] | 103 |
|
---|
| 104 | </sect1>
|
---|
[52d29f7] | 105 |
|
---|