source: general/genlib/pcre.xml@ d86a91f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since d86a91f was d86a91f, checked in by Ken Moffat <ken@…>, 7 years ago

git-2.14.0

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

  • Property mode set to 100644
File size: 7.4 KB
RevLine 
[52d29f7]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[52d29f7]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[e1617c94]7 <!ENTITY pcre-download-http " ">
8<!-- <!ENTITY pcre-download-http "&sourceforge-repo;/pcre/pcre-&pcre-version;.tar.bz2">-->
[ea16306]9 <!ENTITY pcre-download-ftp "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-&pcre-version;.tar.bz2">
[041db65]10 <!ENTITY pcre-md5sum "c160d22723b1670447341b08c58981c1">
[7de152b]11 <!ENTITY pcre-size "1.5 MB">
[041db65]12 <!ENTITY pcre-buildsize "24 MB (with tests)">
13 <!ENTITY pcre-time "0.3 SBU (with tests)">
[52d29f7]14]>
15
[9d0cd203]16<sect1 id="pcre" xreflabel="PCRE-&pcre-version;">
[469ad5d0]17 <?dbhtml filename="pcre.html"?>
[4c3474fe]18
[469ad5d0]19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
[4c3474fe]23
[469ad5d0]24 <title>PCRE-&pcre-version;</title>
[4c3474fe]25
[469ad5d0]26 <indexterm zone="pcre">
27 <primary sortas="a-PCRE">PCRE</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to PCRE</title>
[4c3474fe]32
[ea16306]33 <para>
34 The <application>PCRE</application> package contains
35 <application>Perl</application> Compatible Regular Expression
36 libraries. These are useful for implementing regular expression
37 pattern matching using the same syntax and semantics as
38 <application>Perl</application> 5.
39 </para>
[4c3474fe]40
[7fd2c27]41 &lfs80_checked;
[7f4cdbc0]42
[469ad5d0]43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
[ea16306]46 <para>
47 Download (HTTP): <ulink url="&pcre-download-http;"/>
48 </para>
49 </listitem>
[469ad5d0]50 <listitem>
[ea16306]51 <para>
52 Download (FTP): <ulink url="&pcre-download-ftp;"/>
53 </para>
[469ad5d0]54 </listitem>
55 <listitem>
[ea16306]56 <para>
57 Download MD5 sum: &pcre-md5sum;
58 </para>
[469ad5d0]59 </listitem>
60 <listitem>
[ea16306]61 <para>
62 Download size: &pcre-size;
63 </para>
[469ad5d0]64 </listitem>
65 <listitem>
[ea16306]66 <para>
67 Estimated disk space required: &pcre-buildsize;
68 </para>
[469ad5d0]69 </listitem>
70 <listitem>
[ea16306]71 <para>
72 Estimated build time: &pcre-time;
73 </para>
[469ad5d0]74 </listitem>
75 </itemizedlist>
[1c8a9c9d]76
[33a9814]77 <bridgehead renderas="sect3">PCRE Dependencies</bridgehead>
78
79 <bridgehead renderas="sect4">Optional</bridgehead>
80 <para role="optional">
[f1607a4]81 <xref linkend="valgrind"/>
[33a9814]82 </para>
83
[1039de3]84 <para condition="html" role="usernotes">User Notes:
[ea16306]85 <ulink url="&blfs-wiki;/pcre"/>
86 </para>
[469ad5d0]87 </sect2>
[4c3474fe]88
[469ad5d0]89 <sect2 role="installation">
90 <title>Installation of PCRE</title>
91
[ea16306]92 <para>
93 Install <application>PCRE</application> by running
94 the following commands:
95 </para>
96
[2086c106]97<screen><userinput>./configure --prefix=/usr \
[ea16306]98 --docdir=/usr/share/doc/pcre-&pcre-version; \
[500d604a]99 --enable-unicode-properties \
[0eba16e]100 --enable-pcre16 \
101 --enable-pcre32 \
[500d604a]102 --enable-pcregrep-libz \
103 --enable-pcregrep-libbz2 \
[839ac504]104 --enable-pcretest-libreadline \
[500d604a]105 --disable-static &amp;&amp;
[469ad5d0]106make</userinput></screen>
[4fa8bf55]107
[ea16306]108 <para>
109 To test the results, issue: <command>make check</command>.
110 </para>
[4c3474fe]111
[ea16306]112 <para>
113 Now, as the <systemitem class="username">root</systemitem> user:
114 </para>
[4c3474fe]115
[500d604a]116<screen role="root"><userinput>make install &amp;&amp;
[ea16306]117mv -v /usr/lib/libpcre.so.* /lib &amp;&amp;
[0eba16e]118ln -sfv ../../lib/$(readlink /usr/lib/libpcre.so) /usr/lib/libpcre.so</userinput></screen>
[e959f37]119
[469ad5d0]120 </sect2>
[4c3474fe]121
[469ad5d0]122 <sect2 role="commands">
123 <title>Command Explanations</title>
124
[ea16306]125 <para>
[4edb9a6]126 <parameter>--enable-unicode-properties</parameter>: This switch enables
[e81d71b]127 Unicode properties support and includes the code for handling UTF-8/16/32
[4edb9a6]128 character strings in the library. You need this switch if you are going to
129 build <xref linkend="glib2"/> with the
[ea16306]130 <parameter>--with-pcre=system</parameter> switch.
131 </para>
132
[0eba16e]133 <para>
[4edb9a6]134 <parameter>--enable-pcre16</parameter>: This switch enables 16 bit
[0eba16e]135 character support.
136 </para>
137
138 <para>
[4edb9a6]139 <parameter>--enable-pcre32</parameter>: This switch enables 32 bit
[0eba16e]140 character support.
141 </para>
142
[ea16306]143 <para>
[4edb9a6]144 <parameter>--enable-pcregrep-libz</parameter>: This switch adds
[ea16306]145 support to <command>pcregrep</command> to read
146 <filename class="extension">.gz</filename> compressed files.
147 </para>
148
149 <para>
[4edb9a6]150 <parameter>--enable-pcregrep-libbz2</parameter>: This switch adds
[ea16306]151 support to <command>pcregrep</command> to read
152 <filename class="extension">.bz2</filename> compressed files.
153 </para>
154
[839ac504]155 <para>
[4edb9a6]156 <parameter>--enable-pcretest-libreadline</parameter>: This switch adds line
[839ac504]157 editing and history features to <command>pcretest</command> program.
158 </para>
159
[ea16306]160 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
161 href="../../xincludes/static-libraries.xml"/>
162
163 <para>
[500d604a]164 <command>mv -v /usr/lib/libpcre.so.* /lib</command>: Moves the
[ea16306]165 <application>PCRE</application> library on the root filesystem
166 so that it is available in case <command>grep</command>
167 gets reinstalled with <application>PCRE</application> support.
168 </para>
169
[d86a91f]170 <para>
171 <option>--enable-jit</option>: this option enables Just-in-time
172 compiling, which can greatly speed up pattern matching.
173 </para>
174
[469ad5d0]175 </sect2>
[4c3474fe]176
[469ad5d0]177 <sect2 role="content">
178 <title>Contents</title>
179
180 <segmentedlist>
181 <segtitle>Installed Programs</segtitle>
182 <segtitle>Installed Libraries</segtitle>
[4c288b0]183 <segtitle>Installed Directory</segtitle>
[4c3474fe]184
[469ad5d0]185 <seglistitem>
[ea16306]186 <seg>
[041db65]187 pcregrep, pcretest, and pcre-config
[ea16306]188 </seg>
189 <seg>
[0eba16e]190 libpcre.so, libpcre16.so, libpcre32.so,
191 libpcrecpp.so and libpcreposix.so
[ea16306]192 </seg>
193 <seg>
194 /usr/share/doc/pcre-&pcre-version;
195 </seg>
[469ad5d0]196 </seglistitem>
197 </segmentedlist>
[4c3474fe]198
[469ad5d0]199 <variablelist>
200 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
201 <?dbfo list-presentation="list"?>
202 <?dbhtml list-presentation="table"?>
[4c3474fe]203
[469ad5d0]204 <varlistentry id="pcregrep">
205 <term><command>pcregrep</command></term>
206 <listitem>
[ea16306]207 <para>
208 is a <command>grep</command> that understands
209 <application>Perl</application> compatible regular expressions.
210 </para>
[469ad5d0]211 <indexterm zone="pcre pcregrep">
212 <primary sortas="b-pcregrep">pcregrep</primary>
213 </indexterm>
214 </listitem>
215 </varlistentry>
[4c3474fe]216
[469ad5d0]217 <varlistentry id="pcretest">
218 <term><command>pcretest</command></term>
219 <listitem>
[ea16306]220 <para>
221 can test a <application>Perl</application> compatible
222 regular expression.
223 </para>
[469ad5d0]224 <indexterm zone="pcre pcretest">
225 <primary sortas="b-pcretest">pcretest</primary>
226 </indexterm>
227 </listitem>
228 </varlistentry>
[4c3474fe]229
[469ad5d0]230 <varlistentry id="pcre-config">
231 <term><command>pcre-config</command></term>
232 <listitem>
[ea16306]233 <para>
234 is used during the compile process of programs linking to
235 the <application>PCRE</application> libraries.
236 </para>
[469ad5d0]237 <indexterm zone="pcre pcre-config">
238 <primary sortas="b-pcre-config">pcre-config</primary>
239 </indexterm>
240 </listitem>
241 </varlistentry>
[ea16306]242
[469ad5d0]243 </variablelist>
[ea16306]244
[469ad5d0]245 </sect2>
[ea16306]246
[f45b1953]247</sect1>
Note: See TracBrowser for help on using the repository browser.