Register | Login

make: *** [apc.lo] Error 1 (APC Installation)

Submitted by saylinux on Tue, 01/10/2012 - 18:05

Today when i try to install APC instead of EAccelerator via pecl install APC-3.1.5 or even WHM /Cpanel >> module installers >> php pecl >> manage

I get following error when the package comes to the make command:-

—————————————————————————–

running: make

/var/tmp/APC/apc.c:463: error: ‘apc_regex’ has no member named ‘preg’

/var/tmp/APC/apc.c:463: error: ‘apc_regex’ has no member named ‘preg’

/var/tmp/APC/apc.c:464: error: ‘apc_regex’ has no member named ‘nreg’

/var/tmp/APC/apc.c:464: error: ‘apc_regex’ has no member named ‘nreg’

make: *** [apc.lo] Error 1

ERROR: `make’ failed

————————————————————————————————–

To resolve this and reinstall the APC(make sure that EAccelerator removed from php),before reinstall the APC install the following packages :-

# yum install pcre-devel

before installing APC.

On Debian use

# aptitude install libpcre3-dev

Then you will get the following response when you reinstall the APC :-

—————————————————————————-

unixsurg [~]# cd /usr/lib/php/extensions/no-debug-non-zts-20090626/

unixsurg [/usr/lib/php/extensions/no-debug-non-zts-20090626]# ls

./ ../ apc.so

unixsurg [/usr/lib/php/extensions/no-debug-non-zts-20090626]# cat /usr/lib/php.ini |grep apc

extension=”apc.so”

unixsurg [/usr/lib/php/extensions/no-debug-non-zts-20090626]#

—————————————————————————–

Drupal theme by Kiwi Themes.