source: general/genlib/pcre.xml@ d55b6d59

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.3 6.3-rc1 6.3-rc2 6.3-rc3 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 d55b6d59 was d55b6d59, checked in by Ag Hatzimanikas <ag@…>, 16 years ago

Added some tags

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

  • Property mode set to 100644
File size: 6.5 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
[e924583]7 <!ENTITY pcre-download-http "http://downloads.sourceforge.net/pcre/pcre-&pcre-version;.tar.bz2">
[aff23e0e]8 <!ENTITY pcre-download-ftp "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-&pcre-version;.tar.bz2">
[e924583]9 <!ENTITY pcre-md5sum "2af38e083fb90ef60fa9eda7cc290e86">
10 <!ENTITY pcre-size "780 KB">
[aff23e0e]11 <!ENTITY pcre-buildsize "11 MB">
12 <!ENTITY pcre-time "0.3 SBU">
[52d29f7]13]>
14
[9d0cd203]15<sect1 id="pcre" xreflabel="PCRE-&pcre-version;">
[469ad5d0]16 <?dbhtml filename="pcre.html"?>
[4c3474fe]17
[469ad5d0]18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
[4c3474fe]22
[469ad5d0]23 <title>PCRE-&pcre-version;</title>
[4c3474fe]24
[469ad5d0]25 <indexterm zone="pcre">
26 <primary sortas="a-PCRE">PCRE</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to PCRE</title>
[4c3474fe]31
[469ad5d0]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>
[4c3474fe]37
[469ad5d0]38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>Download (HTTP): <ulink url="&pcre-download-http;"/></para>
42 </listitem>
43 <listitem>
44 <para>Download (FTP): <ulink url="&pcre-download-ftp;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download MD5 sum: &pcre-md5sum;</para>
48 </listitem>
49 <listitem>
50 <para>Download size: &pcre-size;</para>
51 </listitem>
52 <listitem>
53 <para>Estimated disk space required: &pcre-buildsize;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated build time: &pcre-time;</para>
57 </listitem>
58 </itemizedlist>
[4c3474fe]59
[e924583]60 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
61 <itemizedlist spacing='compact'>
62 <listitem>
63 <para>Required Patch: <ulink
64 url="&patch-root;/pcre-&pcre-version;-abi_breakage-1.patch"/></para>
65 </listitem>
66 </itemizedlist>
67
[1039de3]68 <para condition="html" role="usernotes">User Notes:
69 <ulink url="&blfs-wiki;/pcre"/></para>
70
[469ad5d0]71 </sect2>
[4c3474fe]72
[469ad5d0]73 <sect2 role="installation">
74 <title>Installation of PCRE</title>
75
[74390482]76 <para>Install <application>PCRE</application> by running
[469ad5d0]77 the following commands:</para>
78
[e924583]79<screen><userinput>patch -Np1 -i ../pcre-&pcre-version;-abi_breakage-1.patch &amp;&amp;
80./configure --prefix=/usr \
[116854c]81 --docdir=/usr/share/doc/pcre-&pcre-version; \
[e924583]82 --enable-utf8 \
83 --enable-pcregrep-libz \
84 --enable-pcregrep-libbz2 &amp;&amp;
[469ad5d0]85make</userinput></screen>
[4fa8bf55]86
[aff23e0e]87 <para>To test the results, issue: <command>make check</command>.</para>
[4c3474fe]88
[469ad5d0]89 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
[4c3474fe]90
[116854c]91<screen role="root"><userinput>make install</userinput></screen>
[469ad5d0]92
[4c288b0]93 <para>If you reinstall <application>Grep</application> after installing
94 <application>PCRE</application>, <application>Grep</application> will get
95 linked against <application>PCRE</application> and may cause problems if
[74390482]96 <filename class="directory">/usr</filename> is a separate mount point. To avoid
97 this, either pass the option <option>--disable-perl-regexp</option> when executing
[4c288b0]98 <command>./configure</command> for <application>Grep</application> or move
[74390482]99 <filename class="libraryfile">libpcre</filename> to <filename
[469ad5d0]100 class="directory">/lib</filename> as follows.</para>
101
102<screen role="root"><userinput>mv -v /usr/lib/libpcre.so.* /lib/ &amp;&amp;
103ln -v -sf ../../lib/libpcre.so.0 /usr/lib/libpcre.so</userinput></screen>
[4c3474fe]104
[469ad5d0]105 </sect2>
[4c3474fe]106
[469ad5d0]107 <sect2 role="commands">
108 <title>Command Explanations</title>
109
[74390482]110 <para><parameter>--enable-utf8</parameter>: This switch includes the code for
[469ad5d0]111 handling UTF-8 character strings in the library.</para>
[e924583]112
113 <para><parameter>--enable-unicode-properties</parameter>: This switch
114 enables Unicode properties support. Note: You need this switch if you are
[d55b6d59]115 going to build <xref linkend="glib2"/> with the
[e924583]116 <parameter>--with-pcre=system</parameter> switch.</para>
117
118 <para><parameter>--enable-pcregrep-libz</parameter>: This switch adds
[d55b6d59]119 support to <command>pcregrep</command> to read
120 <filename class='extension'>.gz</filename> compressed files.</para>
[e924583]121
122 <para><parameter>--enable-pcregrep-libbz2</parameter>: This switch adds
[d55b6d59]123 support to <command>pcregrep</command> to read
124 <filename class='extension'>.bz2</filename> compressed files.</para>
[4c3474fe]125
[469ad5d0]126 </sect2>
[4c3474fe]127
[469ad5d0]128 <sect2 role="content">
129 <title>Contents</title>
130
131 <segmentedlist>
132 <segtitle>Installed Programs</segtitle>
133 <segtitle>Installed Libraries</segtitle>
[4c288b0]134 <segtitle>Installed Directory</segtitle>
[4c3474fe]135
[469ad5d0]136 <seglistitem>
137 <seg>pcregrep, pcretest, and pcre-config</seg>
[1039de3]138 <seg>libpcre.{so,a}, libpcrecpp.{so,a} and libpcreposix.{so,a}</seg>
[61ef9d8d]139 <seg>/usr/share/doc/pcre-&pcre-version;</seg>
[469ad5d0]140 </seglistitem>
141 </segmentedlist>
[4c3474fe]142
[469ad5d0]143 <variablelist>
144 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
145 <?dbfo list-presentation="list"?>
146 <?dbhtml list-presentation="table"?>
[4c3474fe]147
[469ad5d0]148 <varlistentry id="pcregrep">
149 <term><command>pcregrep</command></term>
150 <listitem>
[74390482]151 <para>is a <command>grep</command> that understands
[469ad5d0]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>
[4c3474fe]158
[469ad5d0]159 <varlistentry id="pcretest">
160 <term><command>pcretest</command></term>
161 <listitem>
[74390482]162 <para>can test a <application>Perl</application> compatible
[469ad5d0]163 regular expression.</para>
164 <indexterm zone="pcre pcretest">
165 <primary sortas="b-pcretest">pcretest</primary>
166 </indexterm>
167 </listitem>
168 </varlistentry>
[4c3474fe]169
[469ad5d0]170 <varlistentry id="pcre-config">
171 <term><command>pcre-config</command></term>
172 <listitem>
[74390482]173 <para>is used during the compile process of programs linking to
[469ad5d0]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>
[4c3474fe]180
[469ad5d0]181 </variablelist>
182
183 </sect2>
[f45b1953]184
185</sect1>
Note: See TracBrowser for help on using the repository browser.