Fixing Shared PCRE Library on CentOS
Solution 1:
Success! I blew away the existing libraries, everything that wasn't in /root/pcre-8.12/
, then ran the ./configure; make; make install
from the source directory.
It installed properly, but still showed me a similar error. I noticed:
[root@vps pcre-8.12]# ldd /usr/sbin/httpd
libm.so.6 => /lib64/libm.so.6 (0x00002b3c8a9dd000)
libpcre.so.0 => not found
(bunch of others)
That the libraries were in /lib64/
, while the only link created by the source installer was:
/usr/local/lib/libpcre.so.0
So, I simply created a link in /lib64/
:
[root@vps tracker]# link /usr/local/lib/libpcre.so.0.0.1 /lib64/libpcre.so.0
And everything seems to be great!
Solution 2:
Perhaps
ldd /usr/bin/php
will show where php is expecting to find the pcre shared libraries.