Hi Everyone. I have searched long and hard for a solution, but nothing is helping. I am trying to install APC on my server with WHM/cPanel installed, but not having much luck. I get the same if I go through WHM PECL install screens.
> cat /etc/redhat-release
CentOS release 4.9 (Final)
> php -v
PHP 5.3.5 (cli)
> yum install pcre-devel
Installed: pcre-devel.i386 0:4.5-4.el4_6.6
Complete!
> cd APC-3.1.6
> which php
/usr/local/bin/php
> phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
> ./configure --enable-apc --enable-apc-mmap --with-apxs --with-php-config=/usr/local/bin/php-config
......
> make
/bin/sh /inst/APC-3.1.6/libtool --mode=compile cc -I. -I/inst/APC-3.1.6 -DPHP_ATOM_INC -I/inst/APC-3.1.6/include -I/inst/APC-3.1.6/main -I/inst/APC-3.1.6 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /inst/APC-3.1.6/apc.c -o apc.lo
mkdir .libs
cc -I. -I/inst/APC-3.1.6 -DPHP_ATOM_INC -I/inst/APC-3.1.6/include -I/inst/APC-3.1.6/main -I/inst/APC-3.1.6 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /inst/APC-3.1.6/apc.c -fPIC -DPIC -o .libs/apc.o
In file included from /inst/APC-3.1.6/apc.c:44:
/usr/local/include/php/ext/pcre/php_pcre.h:29:18: pcre.h: No such file or directory
In file included from /inst/APC-3.1.6/apc.c:44:
/usr/local/include/php/ext/pcre/php_pcre.h:37: error: syntax error before '*' token
/usr/local/include/php/ext/pcre/php_pcre.h:37: error: syntax error before "pcre_extra"
/usr/local/include/php/ext/pcre/php_pcre.h:37: warning: data definition has no type or storage class
/usr/local/include/php/ext/pcre/php_pcre.h:38: error: syntax error before '*' token
/usr/local/include/php/ext/pcre/php_pcre.h:38: error: syntax error before "pcre_extra"
/usr/local/include/php/ext/pcre/php_pcre.h:38: warning: data definition has no type or storage class
/usr/local/include/php/ext/pcre/php_pcre.h:44: error: syntax error before "pcre"
/usr/local/include/php/ext/pcre/php_pcre.h:44: warning: no semicolon at end of struct or union
/usr/local/include/php/ext/pcre/php_pcre.h:45: warning: data definition has no type or storage class
/usr/local/include/php/ext/pcre/php_pcre.h:53: error: syntax error before '}' token
/usr/local/include/php/ext/pcre/php_pcre.h:53: warning: data definition has no type or storage class
/usr/local/include/php/ext/pcre/php_pcre.h:55: error: syntax error before '*' token
/usr/local/include/php/ext/pcre/php_pcre.h:55: warning: data definition has no type or storage class
/usr/local/include/php/ext/pcre/php_pcre.h:57: error: syntax error before '*' token
/usr/local/include/php/ext/pcre/php_pcre.h:60: error: syntax error before '*' token
/usr/local/include/php/ext/pcre/php_pcre.h:63: error: syntax error before '*' token
/usr/local/include/php/ext/pcre/php_pcre.h:66: error: syntax error before '*' token
/inst/APC-3.1.6/apc.c:369: error: syntax error before "pcre"
/inst/APC-3.1.6/apc.c:369: warning: no semicolon at end of struct or union
/inst/APC-3.1.6/apc.c:370: warning: data definition has no type or storage class
/inst/APC-3.1.6/apc.c:371: error: syntax error before '}' token
/inst/APC-3.1.6/apc.c:371: warning: data definition has no type or storage class
/inst/APC-3.1.6/apc.c: In function `apc_regex_compile_array':
/inst/APC-3.1.6/apc.c:400: error: `regs' undeclared (first use in this function)
/inst/APC-3.1.6/apc.c:400: error: (Each undeclared identifier is reported only once
/inst/APC-3.1.6/apc.c:400: error: for each function it appears in.)
/inst/APC-3.1.6/apc.c:409: error: syntax error before ')' token
/inst/APC-3.1.6/apc.c: In function `apc_regex_destroy_array':
/inst/APC-3.1.6/apc.c:442: error: `regs' undeclared (first use in this function)
/inst/APC-3.1.6/apc.c:442: error: syntax error before ')' token
/inst/APC-3.1.6/apc.c: In function `apc_regex_match_array':
/inst/APC-3.1.6/apc.c:456: error: `regs' undeclared (first use in this function)
/inst/APC-3.1.6/apc.c:461: error: syntax error before ')' token
make: *** [apc.lo] Error 1
Pulling my hair out over this one!!
Any suggestions are welcome.
Thanks!
> cat /etc/redhat-release
CentOS release 4.9 (Final)
> php -v
PHP 5.3.5 (cli)
> yum install pcre-devel
Installed: pcre-devel.i386 0:4.5-4.el4_6.6
Complete!
> cd APC-3.1.6
> which php
/usr/local/bin/php
> phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
> ./configure --enable-apc --enable-apc-mmap --with-apxs --with-php-config=/usr/local/bin/php-config
......
> make
/bin/sh /inst/APC-3.1.6/libtool --mode=compile cc -I. -I/inst/APC-3.1.6 -DPHP_ATOM_INC -I/inst/APC-3.1.6/include -I/inst/APC-3.1.6/main -I/inst/APC-3.1.6 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /inst/APC-3.1.6/apc.c -o apc.lo
mkdir .libs
cc -I. -I/inst/APC-3.1.6 -DPHP_ATOM_INC -I/inst/APC-3.1.6/include -I/inst/APC-3.1.6/main -I/inst/APC-3.1.6 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /inst/APC-3.1.6/apc.c -fPIC -DPIC -o .libs/apc.o
In file included from /inst/APC-3.1.6/apc.c:44:
/usr/local/include/php/ext/pcre/php_pcre.h:29:18: pcre.h: No such file or directory
In file included from /inst/APC-3.1.6/apc.c:44:
/usr/local/include/php/ext/pcre/php_pcre.h:37: error: syntax error before '*' token
/usr/local/include/php/ext/pcre/php_pcre.h:37: error: syntax error before "pcre_extra"
/usr/local/include/php/ext/pcre/php_pcre.h:37: warning: data definition has no type or storage class
/usr/local/include/php/ext/pcre/php_pcre.h:38: error: syntax error before '*' token
/usr/local/include/php/ext/pcre/php_pcre.h:38: error: syntax error before "pcre_extra"
/usr/local/include/php/ext/pcre/php_pcre.h:38: warning: data definition has no type or storage class
/usr/local/include/php/ext/pcre/php_pcre.h:44: error: syntax error before "pcre"
/usr/local/include/php/ext/pcre/php_pcre.h:44: warning: no semicolon at end of struct or union
/usr/local/include/php/ext/pcre/php_pcre.h:45: warning: data definition has no type or storage class
/usr/local/include/php/ext/pcre/php_pcre.h:53: error: syntax error before '}' token
/usr/local/include/php/ext/pcre/php_pcre.h:53: warning: data definition has no type or storage class
/usr/local/include/php/ext/pcre/php_pcre.h:55: error: syntax error before '*' token
/usr/local/include/php/ext/pcre/php_pcre.h:55: warning: data definition has no type or storage class
/usr/local/include/php/ext/pcre/php_pcre.h:57: error: syntax error before '*' token
/usr/local/include/php/ext/pcre/php_pcre.h:60: error: syntax error before '*' token
/usr/local/include/php/ext/pcre/php_pcre.h:63: error: syntax error before '*' token
/usr/local/include/php/ext/pcre/php_pcre.h:66: error: syntax error before '*' token
/inst/APC-3.1.6/apc.c:369: error: syntax error before "pcre"
/inst/APC-3.1.6/apc.c:369: warning: no semicolon at end of struct or union
/inst/APC-3.1.6/apc.c:370: warning: data definition has no type or storage class
/inst/APC-3.1.6/apc.c:371: error: syntax error before '}' token
/inst/APC-3.1.6/apc.c:371: warning: data definition has no type or storage class
/inst/APC-3.1.6/apc.c: In function `apc_regex_compile_array':
/inst/APC-3.1.6/apc.c:400: error: `regs' undeclared (first use in this function)
/inst/APC-3.1.6/apc.c:400: error: (Each undeclared identifier is reported only once
/inst/APC-3.1.6/apc.c:400: error: for each function it appears in.)
/inst/APC-3.1.6/apc.c:409: error: syntax error before ')' token
/inst/APC-3.1.6/apc.c: In function `apc_regex_destroy_array':
/inst/APC-3.1.6/apc.c:442: error: `regs' undeclared (first use in this function)
/inst/APC-3.1.6/apc.c:442: error: syntax error before ')' token
/inst/APC-3.1.6/apc.c: In function `apc_regex_match_array':
/inst/APC-3.1.6/apc.c:456: error: `regs' undeclared (first use in this function)
/inst/APC-3.1.6/apc.c:461: error: syntax error before ')' token
make: *** [apc.lo] Error 1
Pulling my hair out over this one!!
Any suggestions are welcome.
Thanks!