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-7.0.tar.bz2
Download MD5 sum: b97e3bb84bd665e0fbb7a90344d65a43
Download size: 607 KB
Estimated disk space required: 13 MB
Estimated build time: 0.3 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pcre
Install PCRE by running the following commands:
./configure --prefix=/usr --enable-utf8 && make
To test the results, issue: make runtest.
Now, as the root user:
make install &&
install -v -m755 -d /usr/share/doc/pcre-7.0/html &&
install -v -m644 doc/html/* /usr/share/doc/pcre-7.0/html &&
install -v -m644 doc/{Tech.Notes,*.txt} /usr/share/doc/pcre-7.0
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 -v /usr/lib/libpcre.so.* /lib/ && ln -v -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.
Last updated on 2007-04-04 21:42:53 +0200