Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I get the following error when running sudo pecl install apc.

/var/tmp/APC/apc_cache.c: In function '_apc_cache_user_update':
/var/tmp/APC/apc_cache.c:818: error: 'IS_CONSTANT_INDEX' undeclared (first use in this function)
/var/tmp/APC/apc_cache.c:818: error: (Each undeclared identifier is reported only once
/var/tmp/APC/apc_cache.c:818: error: for each function it appears in.)
/var/tmp/APC/apc_cache.c:820: error: 'IS_CONSTANT_ARRAY' undeclared (first use in this function)
make: *** [apc_cache.lo] Error 1
ERROR: `make' failed

I have php 5.5.12 installed and these following libraries are all up to date:

sudo yum install php-pear
sudo yum install php-devel
sudo yum install httpd-devel
sudo yum install gcc
sudo yum install pcre-devel
sudo pecl install apc-beta


share|improve this question
up vote 5 down vote accepted

APC doesn't have support for PHP 5.5, the last version it was updated to work with was 5.4, and it hasn't seen updates since except for bug fixes in 2012.

If you did want to make it work with 5.5 you could try redefining IS_CONSTANT_ARRAY and IS_CONSTANT_INDEX to be IS_CONSTANT_AST since this has superseded them, however that's no guarantee of success if it eventually does compile.

share|improve this answer
Thanks scragar! – pufAmuf May 8 '14 at 15:30
PHP 5.5 has a built-in OPcode cache: – Tero Kilkanen May 8 '14 at 19:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.