mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-01 04:52:12 +08:00
ecbeb38667
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2749 af4574ff-66df-0310-9fd7-8a98e5e911e0
106 lines
5.0 KiB
XML
106 lines
5.0 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY pcre-download-http " ">
|
|
<!ENTITY pcre-download-ftp "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-&pcre-version;.tar.bz2">
|
|
<!ENTITY pcre-md5 "813850808894d99fb5b1c41ec6335d4f">
|
|
<!ENTITY pcre-size "460 KB">
|
|
<!ENTITY pcre-buildsize "3.5 MB">
|
|
<!ENTITY pcre-time "0.08 SBU">
|
|
|
|
]>
|
|
|
|
<sect1 id="pcre" xreflabel="PCRE-&pcre-version;">
|
|
<sect1info>
|
|
<othername>$LastChangedBy$</othername>
|
|
<date>$Date$</date>
|
|
</sect1info>
|
|
<?dbhtml filename="pcre.html"?>
|
|
<title>PCRE-&pcre-version;</title>
|
|
|
|
<sect2>
|
|
<title>Introduction to <application><acronym>PCRE</acronym></application></title>
|
|
|
|
<para>The <application><acronym>PCRE</acronym></application> package contains
|
|
<application>Perl</application> Compatible Regular Expression
|
|
libraries. These are useful for implementing regular expression pattern
|
|
matching using the same syntax and semantics as
|
|
<application>Perl</application> 5.</para>
|
|
|
|
<sect3><title>Package information</title>
|
|
<itemizedlist spacing='compact'>
|
|
<listitem><para>Download (HTTP): <ulink
|
|
url="&pcre-download-http;"/></para></listitem>
|
|
<listitem><para>Download (FTP): <ulink
|
|
url="&pcre-download-ftp;"/></para></listitem>
|
|
<listitem><para>MD5 Sum: &pcre-md5;</para></listitem>
|
|
<listitem><para>Download size: &pcre-size;</para></listitem>
|
|
<listitem><para>Estimated Disk space required:
|
|
&pcre-buildsize;</para></listitem>
|
|
<listitem><para>Estimated build time:
|
|
&pcre-time;</para></listitem></itemizedlist>
|
|
</sect3>
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>Installation of <application><acronym>PCRE</acronym></application></title>
|
|
|
|
<para>Install <application><acronym>PCRE</acronym></application> by running
|
|
the following commands:</para>
|
|
|
|
<screen><userinput><command>./configure --prefix=/usr --enable-utf8 &&
|
|
make &&
|
|
make install</command></userinput></screen>
|
|
|
|
<para>If you reinstall <application>grep</application> after installing
|
|
<application>pcre</application>, <application>grep</application> will get
|
|
linked against <application>pcre</application> and may cause problems if
|
|
<filename>/usr</filename> is a separate mount point. To avoid this, either
|
|
pass the option <emphasis>--disable-perl-regexp</emphasis> when executing
|
|
<command>./configure</command> for <application>grep</application> or move
|
|
<filename>libpcre</filename> to <filename>/lib</filename> as follows.</para>
|
|
|
|
<screen><userinput><command>mv /usr/lib/libpcre.so.* /lib/ &&
|
|
ln -sf ../../lib/libpcre.so.0 /usr/lib/libpcre.so</command></userinput></screen>
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>Command explanations</title>
|
|
|
|
<para><parameter>--enable-utf8</parameter>: This switch includes the code for
|
|
handling <acronym>UTF</acronym>-8 character strings in the library.</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>Contents</title>
|
|
|
|
<para>The <application><acronym>PCRE</acronym></application> package contains
|
|
the <filename class='libraryfile'>libpcre</filename> libraries,
|
|
<command>pcregrep</command>, <command>pcretest</command> and
|
|
<command>pcre-config</command>.</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2><title>Description</title>
|
|
|
|
<sect3><title>pcregrep</title>
|
|
<para><command>pcregrep</command> is a <command>grep</command> that understands
|
|
<application>Perl</application> compatible regular expressions.</para></sect3>
|
|
|
|
<sect3><title>pcretest</title>
|
|
<para><command>pcretest</command> can test your
|
|
<application>Perl</application> compatible regular expression.</para></sect3>
|
|
|
|
<sect3><title>pcre-config</title>
|
|
<para><command>pcre-config</command> is used during the compile process of
|
|
programs linking to this library.</para></sect3>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|
|
|