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.
Download (FTP): ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-4.5.tar.bz2
Download size: 344 KB
Estimated Disk space required: 3.5 MB
Estimated build time: 0.08 SBU
Install PCRE by running the following commands:
./configure --prefix=/usr --enable-utf8 &&
make &&
make install
If you reinstall grep after installing pcre, grep will get linked against pcre and may cause problems if /usr is a separate mount point. To avoid this, either pass the option --disable-perl-regexp when executing ./configure for grep or move libpcre to /lib as follows.
mv /usr/lib/libpcre.so.* /lib/ &&
ln -sf ../../lib/libpcre.so.0 /usr/lib/libpcre.so
--enable-utf8: This switch includes the code for handling UTF-8 character strings in the library.
The PCRE package contains the libpcre libraries, pcregrep, pcretest and pcre-config.