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

About these ads

Posted on November 2, 2012, in APC and tagged , . Bookmark the permalink. 1 Comment.

  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.

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 )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 102 other followers

%d bloggers like this: