Download location (HTTP): http://pcre.sourceforge.net/src/pcre-3.9.tar.bz2 Download location (FTP): ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-3.9.tar.bz2 Version used: 3.9 Package size: 255 KB Estimated Disk space required: 2.1 MB |
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.
Install pcre by running the following commands:
./configure --prefix=/usr && make && make install |
As with most libraries, there is no configuration to do, save that the library directory i.e. /usr/lib or /usr/local/lib should appear in /etc/ld.so.conf so that ldd can find the shared libraries. After checking that this is the case, /sbin/ldconfig should be run whilst logged in as root.
The pcre package contains the pcre libraries, pcregrep, pcretest and pcre-config.
pcregrep is a grep that understands perl compatible regular expressions.
pcretest can test your perl compatible regular expression.
pcre-config is used during the compile process of programs linking to this library.