source: general/genlib/pcre.xml@ f77b0b9

6.3 6.3-rc3
Last change on this file since f77b0b9 was f77b0b9, checked in by Ken Moffat <ken@…>, 14 years ago

Merge r7497 from trunk.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/6.3/BOOK@7498 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 7.0 KB
Line 
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 "http://downloads.sourceforge.net/pcre/pcre-&pcre-version;.tar.bz2">
8 <!ENTITY pcre-download-ftp "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-&pcre-version;.tar.bz2">
9 <!ENTITY pcre-md5sum "2af38e083fb90ef60fa9eda7cc290e86">
10 <!ENTITY pcre-size "780 KB">
11 <!ENTITY pcre-buildsize "11 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 </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 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
61 <itemizedlist spacing='compact'>
62 <listitem>
63 <para>Required Patch: <ulink
64 url="&patch-root;/pcre-&pcre-version;-abi_breakage-1.patch"/></para>
65 </listitem>
66 <listitem>
67 <para>Required Patch: <ulink
68 url="&patch-root;/pcre-&pcre-version;-security_fix-1.patch"/></para>
69 </listitem>
70 </itemizedlist>
71
72 <para condition="html" role="usernotes">User Notes:
73 <ulink url="&blfs-wiki;/pcre"/></para>
74
75 </sect2>
76
77 <sect2 role="installation">
78 <title>Installation of PCRE</title>
79
80 <para>Install <application>PCRE</application> by running
81 the following commands:</para>
82
83<screen><userinput>patch -Np1 -i ../pcre-&pcre-version;-abi_breakage-1.patch &amp;&amp;
84./configure --prefix=/usr \
85 --docdir=/usr/share/doc/pcre-&pcre-version; \
86 --enable-utf8 \
87 --enable-pcregrep-libz \
88 --enable-pcregrep-libbz2 &amp;&amp;
89make</userinput></screen>
90
91 <para>To test the results, issue: <command>make check</command>. Note:
92 The third set of the tests cannot be run if the "fr_FR" locale is missing
93 from the system.</para>
94
95 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
96
97<screen role="root"><userinput>make install</userinput></screen>
98
99 <para>If you reinstall <application>Grep</application> after installing
100 <application>PCRE</application>, <application>Grep</application> will get
101 linked against <application>PCRE</application> and may cause problems if
102 <filename class="directory">/usr</filename> is a separate mount point. To avoid
103 this, either pass the option <option>--disable-perl-regexp</option> when executing
104 <command>./configure</command> for <application>Grep</application> or move
105 <filename class="libraryfile">libpcre</filename> to <filename
106 class="directory">/lib</filename> as follows.</para>
107
108<screen role="root"><userinput>mv -v /usr/lib/libpcre.so.* /lib/ &amp;&amp;
109ln -v -sf ../../lib/libpcre.so.0 /usr/lib/libpcre.so</userinput></screen>
110
111 </sect2>
112
113 <sect2 role="commands">
114 <title>Command Explanations</title>
115
116 <para><parameter>--enable-utf8</parameter>: This switch includes the code for
117 handling UTF-8 character strings in the library.</para>
118
119 <para><parameter>--enable-unicode-properties</parameter>: This switch
120 enables Unicode properties support.</para>
121
122 <!-- [ag] Glib-2.12.* hasn't yet has this switch. Un-comment for
123 glib-2.16.* and newer and merge the note in the above para.
124 Also for consistency, replace (&dash;&dash;) with two dashes.
125
126 Note: You need this switch if you are going to build
127 <xref linkend="glib2"/> with the
128 <parameter>&dash;&dash;with-pcre=system</parameter> switch. -->
129
130 <para><parameter>--enable-pcregrep-libz</parameter>: This switch adds
131 support to <command>pcregrep</command> to read
132 <filename class='extension'>.gz</filename> compressed files.</para>
133
134 <para><parameter>--enable-pcregrep-libbz2</parameter>: This switch adds
135 support to <command>pcregrep</command> to read
136 <filename class='extension'>.bz2</filename> compressed files.</para>
137
138 </sect2>
139
140 <sect2 role="content">
141 <title>Contents</title>
142
143 <segmentedlist>
144 <segtitle>Installed Programs</segtitle>
145 <segtitle>Installed Libraries</segtitle>
146 <segtitle>Installed Directory</segtitle>
147
148 <seglistitem>
149 <seg>pcregrep, pcretest, and pcre-config</seg>
150 <seg>libpcre.{so,a}, libpcrecpp.{so,a} and libpcreposix.{so,a}</seg>
151 <seg>/usr/share/doc/pcre-&pcre-version;</seg>
152 </seglistitem>
153 </segmentedlist>
154
155 <variablelist>
156 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
157 <?dbfo list-presentation="list"?>
158 <?dbhtml list-presentation="table"?>
159
160 <varlistentry id="pcregrep">
161 <term><command>pcregrep</command></term>
162 <listitem>
163 <para>is a <command>grep</command> that understands
164 <application>Perl</application> compatible regular expressions.</para>
165 <indexterm zone="pcre pcregrep">
166 <primary sortas="b-pcregrep">pcregrep</primary>
167 </indexterm>
168 </listitem>
169 </varlistentry>
170
171 <varlistentry id="pcretest">
172 <term><command>pcretest</command></term>
173 <listitem>
174 <para>can test a <application>Perl</application> compatible
175 regular expression.</para>
176 <indexterm zone="pcre pcretest">
177 <primary sortas="b-pcretest">pcretest</primary>
178 </indexterm>
179 </listitem>
180 </varlistentry>
181
182 <varlistentry id="pcre-config">
183 <term><command>pcre-config</command></term>
184 <listitem>
185 <para>is used during the compile process of programs linking to
186 the <application>PCRE</application> libraries.</para>
187 <indexterm zone="pcre pcre-config">
188 <primary sortas="b-pcre-config">pcre-config</primary>
189 </indexterm>
190 </listitem>
191 </varlistentry>
192
193 </variablelist>
194
195 </sect2>
196
197</sect1>
Note: See TracBrowser for help on using the repository browser.