After installing APC on CentOS 5 via pecl install apc, APC does not load when PHP is called from the CLI (when called from apache, it loads without any problems).
The error I get is:
root@server [~]# php
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/apc.so' - /usr/lib64/php/modules/apc.so: undefined symbol: pcre_exec in Unknown on line 0
I have searched the web for a solution, and have found many people have had this problem. However, I was unable to find a solution that worked for me.
pcre-develis installed via yum. – xaav Dec 4 '11 at 22:40