source: general/genlib/pcre.xml@ ed81325

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since ed81325 was 839ac504, checked in by Igor Živković <igor@…>, 11 years ago

Link pcretest with libreadline.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@11260 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 "&sourceforge-repo;/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 "21514018448ac10062ece7a668fca949">
10 <!ENTITY pcre-size "1.4 MB">
11 <!ENTITY pcre-buildsize "18 MB">
12 <!ENTITY pcre-time "0.2 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>
33 The <application>PCRE</application> package contains
34 <application>Perl</application> Compatible Regular Expression
35 libraries. These are useful for implementing regular expression
36 pattern matching using the same syntax and semantics as
37 <application>Perl</application> 5.
38 </para>
39
40 &lfs73_checked;
41
42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>
46 Download (HTTP): <ulink url="&pcre-download-http;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download (FTP): <ulink url="&pcre-download-ftp;"/>
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download MD5 sum: &pcre-md5sum;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Download size: &pcre-size;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated disk space required: &pcre-buildsize;
67 </para>
68 </listitem>
69 <listitem>
70 <para>
71 Estimated build time: &pcre-time;
72 </para>
73 </listitem>
74 </itemizedlist>
75
76 <bridgehead renderas="sect3">PCRE Dependencies</bridgehead>
77
78 <bridgehead renderas="sect4">Optional</bridgehead>
79 <para role="optional">
80 <ulink url="http://valgrind.org/">Valgrind</ulink>
81<!-- -&#45;enable-pcretest-libedit (redundant as long as LFS installs libreadline
82 and <ulink url="http://www.thrysoee.dk/editline/">libedit</ulink>
83-->
84 </para>
85
86 <para condition="html" role="usernotes">User Notes:
87 <ulink url="&blfs-wiki;/pcre"/>
88 </para>
89 </sect2>
90
91 <sect2 role="installation">
92 <title>Installation of PCRE</title>
93
94 <para>
95 Install <application>PCRE</application> by running
96 the following commands:
97 </para>
98
99<screen><userinput>./configure --prefix=/usr \
100 --docdir=/usr/share/doc/pcre-&pcre-version; \
101 --enable-utf \
102 --enable-unicode-properties \
103 --enable-pcregrep-libz \
104 --enable-pcregrep-libbz2 \
105 --enable-pcretest-libreadline \
106 --disable-static &amp;&amp;
107make</userinput></screen>
108
109 <para>
110 To test the results, issue: <command>make check</command>.
111 </para>
112
113 <para>
114 Now, as the <systemitem class="username">root</systemitem> user:
115 </para>
116
117<screen role="root"><userinput>make install &amp;&amp;
118mv -v /usr/lib/libpcre.so.* /lib &amp;&amp;
119ln -sfv ../../lib/libpcre.so.1.2.1 /usr/lib/libpcre.so</userinput></screen>
120
121 </sect2>
122
123 <sect2 role="commands">
124 <title>Command Explanations</title>
125
126 <para>
127 <option>--enable-utf</option>: This switch includes the code for
128 handling UTF-8 character strings in the library.
129 </para>
130
131 <para>
132 <option>--enable-unicode-properties</option>: This switch enables
133 Unicode properties support. Note: You need this switch if you are
134 going to build <xref linkend="glib2"/> with the
135 <parameter>--with-pcre=system</parameter> switch.
136 </para>
137
138 <para>
139 <option>--enable-pcregrep-libz</option>: This switch adds
140 support to <command>pcregrep</command> to read
141 <filename class="extension">.gz</filename> compressed files.
142 </para>
143
144 <para>
145 <option>--enable-pcregrep-libbz2</option>: This switch adds
146 support to <command>pcregrep</command> to read
147 <filename class="extension">.bz2</filename> compressed files.
148 </para>
149
150 <para>
151 <option>--enable-pcretest-libreadline</option>: This switch adds line
152 editing and history features to <command>pcretest</command> program.
153 </para>
154
155 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
156 href="../../xincludes/static-libraries.xml"/>
157
158 <para>
159 <command>mv -v /usr/lib/libpcre.so.* /lib</command>: Moves the
160 <application>PCRE</application> library on the root filesystem
161 so that it is available in case <command>grep</command>
162 gets reinstalled with <application>PCRE</application> support.
163 </para>
164
165 </sect2>
166
167 <sect2 role="content">
168 <title>Contents</title>
169
170 <segmentedlist>
171 <segtitle>Installed Programs</segtitle>
172 <segtitle>Installed Libraries</segtitle>
173 <segtitle>Installed Directory</segtitle>
174
175 <seglistitem>
176 <seg>
177 pcregrep, pcretest and pcre-config
178 </seg>
179 <seg>
180 libpcre.so, libpcrecpp.so and libpcreposix.so
181 </seg>
182 <seg>
183 /usr/share/doc/pcre-&pcre-version;
184 </seg>
185 </seglistitem>
186 </segmentedlist>
187
188 <variablelist>
189 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
190 <?dbfo list-presentation="list"?>
191 <?dbhtml list-presentation="table"?>
192
193 <varlistentry id="pcregrep">
194 <term><command>pcregrep</command></term>
195 <listitem>
196 <para>
197 is a <command>grep</command> that understands
198 <application>Perl</application> compatible regular expressions.
199 </para>
200 <indexterm zone="pcre pcregrep">
201 <primary sortas="b-pcregrep">pcregrep</primary>
202 </indexterm>
203 </listitem>
204 </varlistentry>
205
206 <varlistentry id="pcretest">
207 <term><command>pcretest</command></term>
208 <listitem>
209 <para>
210 can test a <application>Perl</application> compatible
211 regular expression.
212 </para>
213 <indexterm zone="pcre pcretest">
214 <primary sortas="b-pcretest">pcretest</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218
219 <varlistentry id="pcre-config">
220 <term><command>pcre-config</command></term>
221 <listitem>
222 <para>
223 is used during the compile process of programs linking to
224 the <application>PCRE</application> libraries.
225 </para>
226 <indexterm zone="pcre pcre-config">
227 <primary sortas="b-pcre-config">pcre-config</primary>
228 </indexterm>
229 </listitem>
230 </varlistentry>
231
232 </variablelist>
233
234 </sect2>
235
236</sect1>
Note: See TracBrowser for help on using the repository browser.