source: general/genlib/pcre.xml@ aab13c9

11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt 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 aab13c9 was aab13c9, checked in by Douglas R. Reno <renodr@…>, 3 years ago

pcre: remove instructions for moving libpcre.so to /lib (merged-/usr)

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