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