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