source: general/genlib/pcre.xml@ 008789a1

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 xry111/llvm18 xry111/soup3 xry111/xf86-video-removal
Last change on this file since 008789a1 was ac7f1b0, checked in by Xi Ruoyao <xry111@…>, 2 years ago

pcre: glib2 does not have internal pcre now

  • Property mode set to 100644
File size: 7.1 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
[7526f4f]7 <!ENTITY pcre-download-http "https://sourceforge.net/projects/pcre/files/pcre/8.45/pcre-&pcre-version;.tar.bz2">
8 <!ENTITY pcre-download-ftp " ">
[6b06d8bc]9 <!ENTITY pcre-md5sum "4452288e6a0eefb2ab11d36010a1eebb">
[7de152b]10 <!ENTITY pcre-size "1.5 MB">
[6b06d8bc]11 <!ENTITY pcre-buildsize "23 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
[03a2986]39 &lfs111_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
[ac7f1b0]125 build <xref linkend="glib2"/>.
[ea16306]126 </para>
127
[0eba16e]128 <para>
[4edb9a6]129 <parameter>--enable-pcre16</parameter>: This switch enables 16 bit
[0eba16e]130 character support.
131 </para>
132
133 <para>
[4edb9a6]134 <parameter>--enable-pcre32</parameter>: This switch enables 32 bit
[0eba16e]135 character support.
136 </para>
137
[ea16306]138 <para>
[4edb9a6]139 <parameter>--enable-pcregrep-libz</parameter>: This switch adds
[ea16306]140 support to <command>pcregrep</command> to read
141 <filename class="extension">.gz</filename> compressed files.
142 </para>
143
144 <para>
[4edb9a6]145 <parameter>--enable-pcregrep-libbz2</parameter>: This switch adds
[ea16306]146 support to <command>pcregrep</command> to read
147 <filename class="extension">.bz2</filename> compressed files.
148 </para>
149
[839ac504]150 <para>
[4edb9a6]151 <parameter>--enable-pcretest-libreadline</parameter>: This switch adds line
[839ac504]152 editing and history features to <command>pcretest</command> program.
153 </para>
154
[ea16306]155 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
156 href="../../xincludes/static-libraries.xml"/>
157
[aab13c9]158 <!-- FIXME: Removed due to merged-/usr setup
[ea16306]159 <para>
[500d604a]160 <command>mv -v /usr/lib/libpcre.so.* /lib</command>: Moves the
[ea16306]161 <application>PCRE</application> library on the root filesystem
162 so that it is available in case <command>grep</command>
163 gets reinstalled with <application>PCRE</application> support.
164 </para>
[aab13c9]165 -->
[ea16306]166
[d86a91f]167 <para>
168 <option>--enable-jit</option>: this option enables Just-in-time
169 compiling, which can greatly speed up pattern matching.
170 </para>
171
[469ad5d0]172 </sect2>
[4c3474fe]173
[469ad5d0]174 <sect2 role="content">
175 <title>Contents</title>
176
177 <segmentedlist>
178 <segtitle>Installed Programs</segtitle>
179 <segtitle>Installed Libraries</segtitle>
[4c288b0]180 <segtitle>Installed Directory</segtitle>
[4c3474fe]181
[469ad5d0]182 <seglistitem>
[ea16306]183 <seg>
[041db65]184 pcregrep, pcretest, and pcre-config
[ea16306]185 </seg>
186 <seg>
[0eba16e]187 libpcre.so, libpcre16.so, libpcre32.so,
188 libpcrecpp.so and libpcreposix.so
[ea16306]189 </seg>
190 <seg>
191 /usr/share/doc/pcre-&pcre-version;
192 </seg>
[469ad5d0]193 </seglistitem>
194 </segmentedlist>
[4c3474fe]195
[469ad5d0]196 <variablelist>
197 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
198 <?dbfo list-presentation="list"?>
199 <?dbhtml list-presentation="table"?>
[4c3474fe]200
[469ad5d0]201 <varlistentry id="pcregrep">
202 <term><command>pcregrep</command></term>
203 <listitem>
[ea16306]204 <para>
205 is a <command>grep</command> that understands
[4c24eb0a]206 <application>Perl</application> compatible regular expressions
[ea16306]207 </para>
[469ad5d0]208 <indexterm zone="pcre pcregrep">
209 <primary sortas="b-pcregrep">pcregrep</primary>
210 </indexterm>
211 </listitem>
212 </varlistentry>
[4c3474fe]213
[469ad5d0]214 <varlistentry id="pcretest">
215 <term><command>pcretest</command></term>
216 <listitem>
[ea16306]217 <para>
218 can test a <application>Perl</application> compatible
[4c24eb0a]219 regular expression
[ea16306]220 </para>
[469ad5d0]221 <indexterm zone="pcre pcretest">
222 <primary sortas="b-pcretest">pcretest</primary>
223 </indexterm>
224 </listitem>
225 </varlistentry>
[4c3474fe]226
[469ad5d0]227 <varlistentry id="pcre-config">
228 <term><command>pcre-config</command></term>
229 <listitem>
[ea16306]230 <para>
231 is used during the compile process of programs linking to
[4c24eb0a]232 the <application>PCRE</application> libraries
[ea16306]233 </para>
[469ad5d0]234 <indexterm zone="pcre pcre-config">
235 <primary sortas="b-pcre-config">pcre-config</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
[ea16306]239
[469ad5d0]240 </variablelist>
[ea16306]241
[469ad5d0]242 </sect2>
[ea16306]243
[f45b1953]244</sect1>
Note: See TracBrowser for help on using the repository browser.