Nerdier

Adjective: Comparative form of nerdy: more nerdy.

APC make error.

When installing APC on a CentOS 6.4 server I got the following error;

In file included from /var/tmp/APC/apc.c:45:
/usr/include/php/ext/pcre/php_pcre.h:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/include/php/ext/pcre/php_pcre.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/include/php/ext/pcre/php_pcre.h:44: error: expected specifier-qualifier-list before ‘pcre’
/var/tmp/APC/apc.c:449: error: expected specifier-qualifier-list before ‘pcre’
/var/tmp/APC/apc.c: In function ‘apc_regex_compile_array’:
/var/tmp/APC/apc.c:510: error: ‘apc_regex’ has no member named ‘preg’
/var/tmp/APC/apc.c:510: error: ‘apc_regex’ has no member named ‘preg’
/var/tmp/APC/apc.c:511: error: ‘apc_regex’ has no member named ‘nreg’
/var/tmp/APC/apc.c:511: error: ‘apc_regex’ has no member named ‘nreg’
/var/tmp/APC/apc.c: In function ‘apc_regex_match_array’:
/var/tmp/APC/apc.c:552: error: ‘apc_regex’ has no member named ‘preg’
/var/tmp/APC/apc.c:552: error: ‘apc_regex’ has no member named ‘preg’
/var/tmp/APC/apc.c:553: error: ‘apc_regex’ has no member named ‘nreg’
/var/tmp/APC/apc.c:553: error: ‘apc_regex’ has no member named ‘nreg’
make: *** [apc.lo] Error 1
ERROR: `make' failed

Installing the following fixed it.

yum install httpd-devel pcre-devel

Leave a Reply

Your email address will not be published. Required fields are marked *