[2dbb5526] | 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 |
|
---|
[8dfc5c3] | 7 | <!ENTITY pcre2-download-http "&sourceforge-dl;/pcre/pcre2-&pcre2-version;.tar.bz2">
|
---|
[2dbb5526] | 8 | <!ENTITY pcre2-download-ftp "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre2-&pcre2-version;.tar.bz2">
|
---|
[95378e8] | 9 | <!ENTITY pcre2-md5sum "8a096287153fb994970df3570e90fcb5">
|
---|
[0cce0593] | 10 | <!ENTITY pcre2-size "1.6 MB">
|
---|
[95378e8] | 11 | <!ENTITY pcre2-buildsize "22 MB (with tests)">
|
---|
| 12 | <!ENTITY pcre2-time "0.4 SBU (with tests)">
|
---|
[2dbb5526] | 13 | ]>
|
---|
| 14 |
|
---|
[0129a2f5] | 15 | <sect1 id="pcre2" xreflabel="pcre2-&pcre2-version;">
|
---|
[2dbb5526] | 16 | <?dbhtml filename="pcre2.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>PCRE2-&pcre2-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="pcre2">
|
---|
| 26 | <primary sortas="a-pcre2">PCRE2</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to PCRE2</title>
|
---|
| 31 |
|
---|
| 32 | <para>
|
---|
| 33 | The <application>PCRE2</application> package contains a new generation of
|
---|
| 34 | the <application>Perl Compatible Regular Expression</application>
|
---|
| 35 | libraries. These are useful for implementing regular expression pattern
|
---|
| 36 | matching using the same syntax and semantics as <application>Perl</application>.
|
---|
| 37 | </para>
|
---|
| 38 |
|
---|
[89d0029] | 39 | &lfs83_checked;
|
---|
[2dbb5526] | 40 |
|
---|
| 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>
|
---|
| 45 | Download (HTTP): <ulink url="&pcre2-download-http;"/>
|
---|
| 46 | </para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>
|
---|
| 50 | Download (FTP): <ulink url="&pcre2-download-ftp;"/>
|
---|
| 51 | </para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>
|
---|
| 55 | Download MD5 sum: &pcre2-md5sum;
|
---|
| 56 | </para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>
|
---|
| 60 | Download size: &pcre2-size;
|
---|
| 61 | </para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>
|
---|
| 65 | Estimated disk space required: &pcre2-buildsize;
|
---|
| 66 | </para>
|
---|
| 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
| 69 | <para>
|
---|
| 70 | Estimated build time: &pcre2-time;
|
---|
| 71 | </para>
|
---|
| 72 | </listitem>
|
---|
| 73 | </itemizedlist>
|
---|
| 74 |
|
---|
| 75 | <bridgehead renderas="sect3">PCRE2 Dependencies</bridgehead>
|
---|
| 76 |
|
---|
| 77 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 78 | <para role="optional">
|
---|
[95378e8] | 79 | <xref linkend="valgrind"/> and
|
---|
| 80 | <ulink url="https://www.cs.utah.edu/~bigler/code/libedit.html">libedit</ulink>
|
---|
[2dbb5526] | 81 | </para>
|
---|
| 82 |
|
---|
| 83 | <para condition="html" role="usernotes">
|
---|
| 84 | User Notes: <ulink url="&blfs-wiki;/pcre2"/>
|
---|
| 85 | </para>
|
---|
| 86 | </sect2>
|
---|
| 87 |
|
---|
| 88 | <sect2 role="installation">
|
---|
| 89 | <title>Installation of PCRE2</title>
|
---|
| 90 |
|
---|
| 91 | <para>
|
---|
| 92 | Install <application>PCRE2</application> by running the following
|
---|
| 93 | commands:
|
---|
| 94 | </para>
|
---|
| 95 |
|
---|
| 96 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 97 | --docdir=/usr/share/doc/pcre2-&pcre2-version; \
|
---|
| 98 | --enable-unicode \
|
---|
[454176b] | 99 | --enable-jit \
|
---|
[2dbb5526] | 100 | --enable-pcre2-16 \
|
---|
| 101 | --enable-pcre2-32 \
|
---|
| 102 | --enable-pcre2grep-libz \
|
---|
| 103 | --enable-pcre2grep-libbz2 \
|
---|
| 104 | --enable-pcre2test-libreadline \
|
---|
| 105 | --disable-static &&
|
---|
| 106 | make</userinput></screen>
|
---|
| 107 |
|
---|
| 108 | <para>
|
---|
| 109 | To test the results, issue: <command>make check</command>.
|
---|
| 110 | </para>
|
---|
| 111 |
|
---|
| 112 | <para>
|
---|
| 113 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 114 | </para>
|
---|
| 115 |
|
---|
| 116 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 117 | </sect2>
|
---|
| 118 |
|
---|
| 119 | <sect2 role="commands">
|
---|
| 120 | <title>Command Explanations</title>
|
---|
| 121 |
|
---|
| 122 | <para>
|
---|
| 123 | <parameter>--enable-unicode</parameter>: This switch enables Unicode
|
---|
| 124 | support and includes the functions for handling UTF-8/16/32 character
|
---|
| 125 | strings in the library.
|
---|
| 126 | </para>
|
---|
| 127 |
|
---|
| 128 | <para>
|
---|
| 129 | <parameter>--enable-pcre2-16</parameter>: This switch enables 16 bit
|
---|
| 130 | character support.
|
---|
| 131 | </para>
|
---|
| 132 |
|
---|
| 133 | <para>
|
---|
| 134 | <parameter>--enable-pcre2-32</parameter>: This switch enables 32 bit
|
---|
| 135 | character support.
|
---|
| 136 | </para>
|
---|
| 137 |
|
---|
| 138 | <para>
|
---|
| 139 | <parameter>--enable-pcre2grep-libz</parameter>: This switch adds support
|
---|
| 140 | for reading .gz compressed files to <application>pcre2grep</application>.
|
---|
| 141 | </para>
|
---|
| 142 |
|
---|
| 143 | <para>
|
---|
| 144 | <parameter>--enable-pcre2grep-libbz2</parameter>: This switch adds
|
---|
| 145 | support for reading .bz2 compressed files to
|
---|
| 146 | <application>pcre2grep</application>.
|
---|
| 147 | </para>
|
---|
| 148 |
|
---|
| 149 | <para>
|
---|
| 150 | <parameter>--enable-pcre2test-libreadline</parameter>: This switch adds
|
---|
| 151 | line editing and history features to the
|
---|
| 152 | <application>pcre2test</application> program.
|
---|
| 153 | </para>
|
---|
| 154 |
|
---|
| 155 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 156 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 157 |
|
---|
[d86a91f] | 158 | <para>
|
---|
| 159 | <option>--enable-jit</option>: this option enables Just-in-time compiling,
|
---|
| 160 | which can greatly speed up pattern matching.
|
---|
| 161 | </para>
|
---|
| 162 |
|
---|
[2dbb5526] | 163 | </sect2>
|
---|
| 164 |
|
---|
| 165 | <sect2 role="content">
|
---|
| 166 | <title>Contents</title>
|
---|
| 167 |
|
---|
| 168 | <segmentedlist>
|
---|
| 169 | <segtitle>Installed Programs</segtitle>
|
---|
| 170 | <segtitle>Installed Libraries</segtitle>
|
---|
| 171 | <segtitle>Installed Directory</segtitle>
|
---|
| 172 |
|
---|
| 173 | <seglistitem>
|
---|
| 174 | <seg>
|
---|
| 175 | pcre2-config,
|
---|
| 176 | pcre2grep,
|
---|
| 177 | and pcre2test.
|
---|
| 178 | </seg>
|
---|
| 179 | <seg>
|
---|
| 180 | libpcre2-8.so,
|
---|
| 181 | libpcre2-16.so,
|
---|
| 182 | libpcre2-32.so,
|
---|
| 183 | and libpcre2-posix.so
|
---|
| 184 | </seg>
|
---|
| 185 | <seg>
|
---|
| 186 | /usr/share/doc/pcre2-&pcre2-version;
|
---|
| 187 | </seg>
|
---|
| 188 | </seglistitem>
|
---|
| 189 | </segmentedlist>
|
---|
| 190 |
|
---|
| 191 | <variablelist>
|
---|
| 192 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 193 | <?dbfo list-presentation="list"?>
|
---|
| 194 | <?dbhtml list-presentation="table"?>
|
---|
| 195 |
|
---|
| 196 | <varlistentry id="pcre2grep">
|
---|
| 197 | <term><command>pcre2grep</command></term>
|
---|
| 198 | <listitem>
|
---|
| 199 | <para>
|
---|
| 200 | is a version of <application>grep</application>
|
---|
| 201 | that understands
|
---|
| 202 | <application>Perl compatible regular expressions.</application>.
|
---|
| 203 | </para>
|
---|
| 204 | <indexterm zone="pcre2 pcre2grep">
|
---|
| 205 | <primary sortas="b-pcre2grep">pcre2grep</primary>
|
---|
| 206 | </indexterm>
|
---|
| 207 | </listitem>
|
---|
| 208 | </varlistentry>
|
---|
| 209 |
|
---|
| 210 | <varlistentry id="pcre2test">
|
---|
| 211 | <term><command>pcre2test</command></term>
|
---|
| 212 | <listitem>
|
---|
| 213 | <para>
|
---|
| 214 | can test a
|
---|
| 215 | <application>Perl compatible regular expression.</application>
|
---|
| 216 | </para>
|
---|
| 217 | <indexterm zone="pcre2 pcre2test">
|
---|
| 218 | <primary sortas="b-pcre2test">pcre2</primary>
|
---|
| 219 | </indexterm>
|
---|
| 220 | </listitem>
|
---|
| 221 | </varlistentry>
|
---|
| 222 |
|
---|
| 223 | <varlistentry id="pcre2-config">
|
---|
| 224 | <term><command>pcre2-config</command></term>
|
---|
| 225 | <listitem>
|
---|
| 226 | <para>
|
---|
| 227 | outputs compilation information to programs linking against the
|
---|
| 228 | <application>PCRE2</application> libraries.
|
---|
| 229 | </para>
|
---|
| 230 | <indexterm zone="pcre2 pcre2-config">
|
---|
| 231 | <primary sortas="b-pcre2-config">pcre2-config</primary>
|
---|
| 232 | </indexterm>
|
---|
| 233 | </listitem>
|
---|
| 234 | </varlistentry>
|
---|
| 235 |
|
---|
| 236 | </variablelist>
|
---|
| 237 |
|
---|
| 238 | </sect2>
|
---|
| 239 |
|
---|
| 240 | </sect1>
|
---|