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