The PCRE package contains Perl Compatible Regular Expression libraries. These are useful for implementing regular expression pattern matching using the same syntax and semantics as Perl 5.
This package is known to build and work properly using an LFS-7.0 platform.
Download (FTP): ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.30.tar.bz2
Download MD5 sum: 98e8928cccc945d04279581e778fbdff
Download size: 1.2 MB
Estimated disk space required: 13 MB
Estimated build time: 0.2 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pcre
Install PCRE by running the following commands:
./configure --prefix=/usr --disable-static --libdir=/lib \ --docdir=/usr/share/doc/pcre-8.30 --enable-utf8 --enable-unicode-properties \ --enable-pcregrep-libz --enable-pcregrep-libbz2 && make
To test the results, issue: make check.
Now, as the root user:
make install
--disable-static: This switch prevents
the static libraries being installed.
--libdir=/lib: This option makes it
install its libraries into /lib. If you reinstall Grep after installing PCRE, Grep
will get linked against PCRE and
this may cause problems during the boot process if /usr is a separate mount point. If you have
/usr/lib on the same partition as
/lib you can omit this option
--enable-utf8: This switch
includes the code for handling UTF-8 character strings in the
library.
--enable-unicode-properties: This
switch enables Unicode properties support. Note: You need this
switch if you are going to build GLib-2.30.2 with the --with-pcre=system switch.
--enable-pcregrep-libz:
This switch adds support to pcregrep to read .gz compressed files.
--enable-pcregrep-libbz2:
This switch adds support to pcregrep to read .bz2 compressed files.
Last updated on 2012-02-11 14:06:37 +0000