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