APC: undefined symbol: pcre_exec in Unknown on line 0

Problem: /usr/lib64/php/modules/apc.so: undefined symbol: pcre_exec in Unknown on line 0

Fix for this relatively simple:

1. Copy the /etc/php.d/apc.ini to /tmp
cp /etc/php.d/apc.ini /tmp

2. Remove the installed packeage
yum remove php-pecl-apc

3. Install the apc using pecl itself
pecl install apc

4. Move back file apc.ini
mv /tmp/apc.ini /etc/php.d/apc.ini

Advertisements
APC: undefined symbol: pcre_exec in Unknown on line 0

One thought on “APC: undefined symbol: pcre_exec in Unknown on line 0

  1. i dot galic: yes, but if I use bundled sqlite, without /usr in configure, bug is still here. When I use –enable-pdo=shared –with-pdo-sqlite=shared “configure” and “make” phases are ok, but when I try to use “make test” all tests fails, because warning: dl(): Unable to load dynamic library ‘…/pdo_sqlite.so’ – …/pdo_sqlite.so: undefined symbol: sqlite3_libversion is produced on every test. So bug is still there (tested php 5.3.1 on Debian Lenny). Using own sqlite is workaround I think.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s