1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY pcre-download-http
|
---|
8 | "&sourceforge-repo;/pcre/pcre-&pcre-version;.tar.bz2">
|
---|
9 | <!ENTITY pcre-download-ftp
|
---|
10 | "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-&pcre-version;.tar.bz2">
|
---|
11 | <!ENTITY pcre-md5sum "98e8928cccc945d04279581e778fbdff">
|
---|
12 | <!ENTITY pcre-size "1.2 MB">
|
---|
13 | <!ENTITY pcre-buildsize "13 MB">
|
---|
14 | <!ENTITY pcre-time "0.2 SBU">
|
---|
15 | ]>
|
---|
16 |
|
---|
17 | <sect1 id="pcre" xreflabel="PCRE-&pcre-version;">
|
---|
18 | <?dbhtml filename="pcre.html"?>
|
---|
19 |
|
---|
20 | <sect1info>
|
---|
21 | <othername>$LastChangedBy$</othername>
|
---|
22 | <date>$Date$</date>
|
---|
23 | </sect1info>
|
---|
24 |
|
---|
25 | <title>PCRE-&pcre-version;</title>
|
---|
26 |
|
---|
27 | <indexterm zone="pcre">
|
---|
28 | <primary sortas="a-PCRE">PCRE</primary>
|
---|
29 | </indexterm>
|
---|
30 |
|
---|
31 | <sect2 role="package">
|
---|
32 | <title>Introduction to PCRE</title>
|
---|
33 |
|
---|
34 | <para>The <application>PCRE</application> package contains
|
---|
35 | <application>Perl</application> Compatible Regular Expression
|
---|
36 | libraries. These are useful for implementing regular expression pattern
|
---|
37 | matching using the same syntax and semantics as
|
---|
38 | <application>Perl</application> 5.</para>
|
---|
39 |
|
---|
40 | &lfs71_checked;
|
---|
41 |
|
---|
42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
43 | <itemizedlist spacing="compact">
|
---|
44 | <!-- 8.30 isn't on sourceforge yet
|
---|
45 | <listitem>
|
---|
46 | <para>Download (HTTP): <ulink url="&pcre-download-http;"/></para>
|
---|
47 | </listitem> -->
|
---|
48 | <listitem>
|
---|
49 | <para>Download (FTP): <ulink url="&pcre-download-ftp;"/></para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>Download MD5 sum: &pcre-md5sum;</para>
|
---|
53 | </listitem>
|
---|
54 | <listitem>
|
---|
55 | <para>Download size: &pcre-size;</para>
|
---|
56 | </listitem>
|
---|
57 | <listitem>
|
---|
58 | <para>Estimated disk space required: &pcre-buildsize;</para>
|
---|
59 | </listitem>
|
---|
60 | <listitem>
|
---|
61 | <para>Estimated build time: &pcre-time;</para>
|
---|
62 | </listitem>
|
---|
63 | </itemizedlist>
|
---|
64 |
|
---|
65 | <para condition="html" role="usernotes">User Notes:
|
---|
66 | <ulink url="&blfs-wiki;/pcre"/></para>
|
---|
67 | </sect2>
|
---|
68 |
|
---|
69 | <sect2 role="installation">
|
---|
70 | <title>Installation of PCRE</title>
|
---|
71 |
|
---|
72 | <para>Install <application>PCRE</application> by running
|
---|
73 | the following commands:</para>
|
---|
74 |
|
---|
75 | <screen><userinput>./configure --prefix=/usr --disable-static --libdir=/lib \
|
---|
76 | --docdir=/usr/share/doc/pcre-&pcre-version; --enable-utf8 --enable-unicode-properties \
|
---|
77 | --enable-pcregrep-libz --enable-pcregrep-libbz2 &&
|
---|
78 | make</userinput></screen>
|
---|
79 |
|
---|
80 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
81 |
|
---|
82 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
83 |
|
---|
84 | <screen role="root"><userinput>make install &&
|
---|
85 | mv /lib/pkgconfig/libpcre*.pc /usr/lib/pkgconfig</userinput></screen>
|
---|
86 |
|
---|
87 | </sect2>
|
---|
88 |
|
---|
89 | <sect2 role="commands">
|
---|
90 | <title>Command Explanations</title>
|
---|
91 |
|
---|
92 | <para><option>--disable-static</option>: This switch prevents the static
|
---|
93 | libraries being installed.</para>
|
---|
94 |
|
---|
95 | <para><option>--libdir=/lib</option>: This option makes it install its
|
---|
96 | libraries into /lib. If you reinstall <application>Grep</application> after
|
---|
97 | installing <application>PCRE</application>, <application>Grep</application>
|
---|
98 | will get linked against <application>PCRE</application> and this may cause
|
---|
99 | problems during the boot process if
|
---|
100 | <filename class="directory">/usr</filename> is a separate mount
|
---|
101 | point. If you have <filename class="directory">/usr/lib</filename> on the
|
---|
102 | same partition as <filename class="directory">/lib</filename> you can omit
|
---|
103 | this option</para>
|
---|
104 |
|
---|
105 | <para><parameter>--enable-utf8</parameter>: This switch includes the code for
|
---|
106 | handling UTF-8 character strings in the library.</para>
|
---|
107 |
|
---|
108 | <para><parameter>--enable-unicode-properties</parameter>: This switch
|
---|
109 | enables Unicode properties support. Note: You need this switch if you are
|
---|
110 | going to build <xref linkend="glib2"/> with the
|
---|
111 | <parameter>--with-pcre=system</parameter> switch.</para>
|
---|
112 |
|
---|
113 | <para><parameter>--enable-pcregrep-libz</parameter>: This switch adds
|
---|
114 | support to <command>pcregrep</command> to read
|
---|
115 | <filename class="extension">.gz</filename> compressed files.</para>
|
---|
116 |
|
---|
117 | <para><parameter>--enable-pcregrep-libbz2</parameter>: This switch adds
|
---|
118 | support to <command>pcregrep</command> to read
|
---|
119 | <filename class="extension">.bz2</filename> compressed files.</para>
|
---|
120 | </sect2>
|
---|
121 |
|
---|
122 | <sect2 role="content">
|
---|
123 | <title>Contents</title>
|
---|
124 |
|
---|
125 | <segmentedlist>
|
---|
126 | <segtitle>Installed Programs</segtitle>
|
---|
127 | <segtitle>Installed Libraries</segtitle>
|
---|
128 | <segtitle>Installed Directory</segtitle>
|
---|
129 |
|
---|
130 | <seglistitem>
|
---|
131 | <seg>pcregrep, pcretest, and pcre-config</seg>
|
---|
132 | <seg>libpcre.so, libpcrecpp.so and libpcreposix.so</seg>
|
---|
133 | <seg>/usr/share/doc/pcre-&pcre-version;</seg>
|
---|
134 | </seglistitem>
|
---|
135 | </segmentedlist>
|
---|
136 |
|
---|
137 | <variablelist>
|
---|
138 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
139 | <?dbfo list-presentation="list"?>
|
---|
140 | <?dbhtml list-presentation="table"?>
|
---|
141 |
|
---|
142 | <varlistentry id="pcregrep">
|
---|
143 | <term><command>pcregrep</command></term>
|
---|
144 | <listitem>
|
---|
145 | <para>is a <command>grep</command> that understands
|
---|
146 | <application>Perl</application> compatible regular expressions.</para>
|
---|
147 | <indexterm zone="pcre pcregrep">
|
---|
148 | <primary sortas="b-pcregrep">pcregrep</primary>
|
---|
149 | </indexterm>
|
---|
150 | </listitem>
|
---|
151 | </varlistentry>
|
---|
152 |
|
---|
153 | <varlistentry id="pcretest">
|
---|
154 | <term><command>pcretest</command></term>
|
---|
155 | <listitem>
|
---|
156 | <para>can test a <application>Perl</application> compatible
|
---|
157 | regular expression.</para>
|
---|
158 | <indexterm zone="pcre pcretest">
|
---|
159 | <primary sortas="b-pcretest">pcretest</primary>
|
---|
160 | </indexterm>
|
---|
161 | </listitem>
|
---|
162 | </varlistentry>
|
---|
163 |
|
---|
164 | <varlistentry id="pcre-config">
|
---|
165 | <term><command>pcre-config</command></term>
|
---|
166 | <listitem>
|
---|
167 | <para>is used during the compile process of programs linking to
|
---|
168 | the <application>PCRE</application> libraries.</para>
|
---|
169 | <indexterm zone="pcre pcre-config">
|
---|
170 | <primary sortas="b-pcre-config">pcre-config</primary>
|
---|
171 | </indexterm>
|
---|
172 | </listitem>
|
---|
173 | </varlistentry>
|
---|
174 | </variablelist>
|
---|
175 | </sect2>
|
---|
176 | </sect1>
|
---|