source: general/genlib/pcre.xml@ 778be14

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 778be14 was 778be14, checked in by Bruce Dubbs <bdubbs@…>, 13 years ago

Update to acl-2.2.51
Fix instructions in attr package
Update to doxygen-1.75
Update to pcre-8.12

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

  • Property mode set to 100644
File size: 6.5 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 "f14a9fef3c92f3fc6c5ac92d7a2c7eb3">
10 <!ENTITY pcre-size "976 KB">
11 <!ENTITY pcre-buildsize "12 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 &lfs70_checked;
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>Download (HTTP): <ulink url="&pcre-download-http;"/></para>
44 </listitem>
45 <listitem>
46 <para>Download (FTP): <ulink url="&pcre-download-ftp;"/></para>
47 </listitem>
48 <listitem>
49 <para>Download MD5 sum: &pcre-md5sum;</para>
50 </listitem>
51 <listitem>
52 <para>Download size: &pcre-size;</para>
53 </listitem>
54 <listitem>
55 <para>Estimated disk space required: &pcre-buildsize;</para>
56 </listitem>
57 <listitem>
58 <para>Estimated build time: &pcre-time;</para>
59 </listitem>
60 </itemizedlist>
61
62 <para condition="html" role="usernotes">User Notes:
63 <ulink url="&blfs-wiki;/pcre"/></para>
64
65 </sect2>
66
67 <sect2 role="installation">
68 <title>Installation of PCRE</title>
69
70 <para>Install <application>PCRE</application> by running
71 the following commands:</para>
72
73<screen><userinput>./configure --prefix=/usr \
74 --docdir=/usr/share/doc/pcre-&pcre-version; \
75 --enable-utf8 \
76 --enable-unicode-properties \
77 --enable-pcregrep-libz \
78 --enable-pcregrep-libbz2 &amp;&amp;
79make</userinput></screen>
80
81 <para>To test the results, issue: <command>make check</command>. Note:
82 The third set of the tests cannot be run if the "fr_FR" locale is missing
83 from the system.</para>
84
85 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
86
87<screen role="root"><userinput>make install</userinput></screen>
88
89 <para>If you reinstall <application>Grep</application> after installing
90 <application>PCRE</application>, <application>Grep</application> will get
91 linked against <application>PCRE</application> and may cause problems if
92 <filename class="directory">/usr</filename> is a separate mount point. To avoid
93 this, either pass the option <option>--disable-perl-regexp</option> when executing
94 <command>./configure</command> for <application>Grep</application> or move
95 <filename class="libraryfile">libpcre</filename> to <filename
96 class="directory">/lib</filename> as follows.</para>
97
98<screen role="root"><userinput>mv -v /usr/lib/libpcre.so.* /lib/ &amp;&amp;
99ln -v -sf ../../lib/libpcre.so.0 /usr/lib/libpcre.so</userinput></screen>
100
101 </sect2>
102
103 <sect2 role="commands">
104 <title>Command Explanations</title>
105
106 <para><parameter>--enable-utf8</parameter>: This switch includes the code for
107 handling UTF-8 character strings in the library.</para>
108
109 <para><parameter>--enable-unicode-properties</parameter>: This switch
110 enables Unicode properties support. Note: You need this switch if you are
111 going to build <xref linkend="glib2"/> with the
112 <parameter>--with-pcre=system</parameter> switch.</para>
113
114 <para><parameter>--enable-pcregrep-libz</parameter>: This switch adds
115 support to <command>pcregrep</command> to read
116 <filename class='extension'>.gz</filename> compressed files.</para>
117
118 <para><parameter>--enable-pcregrep-libbz2</parameter>: This switch adds
119 support to <command>pcregrep</command> to read
120 <filename class='extension'>.bz2</filename> compressed files.</para>
121
122 <para><parameter>--enable-shared --disable-static</parameter>: This pair
123 of switches prevents the static libraries in this package from being
124 built and installed.</para>
125
126 </sect2>
127
128 <sect2 role="content">
129 <title>Contents</title>
130
131 <segmentedlist>
132 <segtitle>Installed Programs</segtitle>
133 <segtitle>Installed Libraries</segtitle>
134 <segtitle>Installed Directory</segtitle>
135
136 <seglistitem>
137 <seg>pcregrep, pcretest, and pcre-config</seg>
138 <seg>libpcre.{so,a}, libpcrecpp.{so,a} and libpcreposix.{so,a}</seg>
139 <seg>/usr/share/doc/pcre-&pcre-version;</seg>
140 </seglistitem>
141 </segmentedlist>
142
143 <variablelist>
144 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
145 <?dbfo list-presentation="list"?>
146 <?dbhtml list-presentation="table"?>
147
148 <varlistentry id="pcregrep">
149 <term><command>pcregrep</command></term>
150 <listitem>
151 <para>is a <command>grep</command> that understands
152 <application>Perl</application> compatible regular expressions.</para>
153 <indexterm zone="pcre pcregrep">
154 <primary sortas="b-pcregrep">pcregrep</primary>
155 </indexterm>
156 </listitem>
157 </varlistentry>
158
159 <varlistentry id="pcretest">
160 <term><command>pcretest</command></term>
161 <listitem>
162 <para>can test a <application>Perl</application> compatible
163 regular expression.</para>
164 <indexterm zone="pcre pcretest">
165 <primary sortas="b-pcretest">pcretest</primary>
166 </indexterm>
167 </listitem>
168 </varlistentry>
169
170 <varlistentry id="pcre-config">
171 <term><command>pcre-config</command></term>
172 <listitem>
173 <para>is used during the compile process of programs linking to
174 the <application>PCRE</application> libraries.</para>
175 <indexterm zone="pcre pcre-config">
176 <primary sortas="b-pcre-config">pcre-config</primary>
177 </indexterm>
178 </listitem>
179 </varlistentry>
180
181 </variablelist>
182
183 </sect2>
184
185</sect1>
Note: See TracBrowser for help on using the repository browser.