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