source: general/genlib/pcre.xml@ 61ef9d8d

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 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 61ef9d8d was 61ef9d8d, checked in by Randy McMurchy <randy@…>, 19 years ago

Updated to PCRE-6.0 using a patch submitted by David Jensen

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

  • Property mode set to 100644
File size: 5.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY pcre-download-http " ">
8 <!ENTITY pcre-download-ftp "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-&pcre-version;.tar.bz2">
9 <!ENTITY pcre-md5sum "9352eb6d2be5ad9d8360d2377d3cafac">
10 <!ENTITY pcre-size "542 KB">
11 <!ENTITY pcre-buildsize "11.4 MB">
12 <!ENTITY pcre-time "0.4 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 <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>
59
60 </sect2>
61
62 <sect2 role="installation">
63 <title>Installation of PCRE</title>
64
65 <para>Install <application>PCRE</application> by running
66 the following commands:</para>
67
68<screen><userinput>./configure --prefix=/usr --enable-utf8 &amp;&amp;
69make</userinput></screen>
70
71 <para>To test the results, issue: <command>make runtest</command>.</para>
72
73 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
74
75<screen role="root"><userinput>make install &amp;&amp;
76install -v -m755 -d /usr/share/doc/pcre-&pcre-version;/html &amp;&amp;
77install -v -m644 doc/html/* /usr/share/doc/pcre-&pcre-version;/html &amp;&amp;
78install -v -m644 doc/{Tech.Notes,*.txt} /usr/share/doc/pcre-&pcre-version;</userinput></screen>
79
80 <para>If you reinstall <application>grep</application> after installing
81 <application>pcre</application>, <application>grep</application> will get
82 linked against <application>pcre</application> and may cause problems if
83 <filename class="directory">/usr</filename> is a separate mount point. To avoid
84 this, either pass the option <option>--disable-perl-regexp</option> when executing
85 <command>./configure</command> for <application>grep</application> or move
86 <filename class="libraryfile">libpcre</filename> to <filename
87 class="directory">/lib</filename> as follows.</para>
88
89<screen role="root"><userinput>mv -v /usr/lib/libpcre.so.* /lib/ &amp;&amp;
90ln -v -sf ../../lib/libpcre.so.0 /usr/lib/libpcre.so</userinput></screen>
91
92 </sect2>
93
94 <sect2 role="commands">
95 <title>Command Explanations</title>
96
97 <para><parameter>--enable-utf8</parameter>: This switch includes the code for
98 handling UTF-8 character strings in the library.</para>
99
100 </sect2>
101
102 <sect2 role="content">
103 <title>Contents</title>
104
105 <segmentedlist>
106 <segtitle>Installed Programs</segtitle>
107 <segtitle>Installed Libraries</segtitle>
108 <segtitle>Installed Directories</segtitle>
109
110 <seglistitem>
111 <seg>pcregrep, pcretest, and pcre-config</seg>
112 <seg>libpcre.[so,a], libpcrecpp.[so,a] and libpcreposix.[so,a]</seg>
113 <seg>/usr/share/doc/pcre-&pcre-version;</seg>
114 </seglistitem>
115 </segmentedlist>
116
117 <variablelist>
118 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
119 <?dbfo list-presentation="list"?>
120 <?dbhtml list-presentation="table"?>
121
122 <varlistentry id="pcregrep">
123 <term><command>pcregrep</command></term>
124 <listitem>
125 <para>is a <command>grep</command> that understands
126 <application>Perl</application> compatible regular expressions.</para>
127 <indexterm zone="pcre pcregrep">
128 <primary sortas="b-pcregrep">pcregrep</primary>
129 </indexterm>
130 </listitem>
131 </varlistentry>
132
133 <varlistentry id="pcretest">
134 <term><command>pcretest</command></term>
135 <listitem>
136 <para>can test a <application>Perl</application> compatible
137 regular expression.</para>
138 <indexterm zone="pcre pcretest">
139 <primary sortas="b-pcretest">pcretest</primary>
140 </indexterm>
141 </listitem>
142 </varlistentry>
143
144 <varlistentry id="pcre-config">
145 <term><command>pcre-config</command></term>
146 <listitem>
147 <para>is used during the compile process of programs linking to
148 the <application>PCRE</application> libraries.</para>
149 <indexterm zone="pcre pcre-config">
150 <primary sortas="b-pcre-config">pcre-config</primary>
151 </indexterm>
152 </listitem>
153 </varlistentry>
154
155 </variablelist>
156
157 </sect2>
158
159</sect1>
Note: See TracBrowser for help on using the repository browser.