php – 无法通过pecl install APC安装APC

Hy当我尝试通过pecl安装APC-3.1.5安装APC时
甚至pecl安装APC

当包到make命令时,我得到以下错误

running: make
/bin/sh /var/tmp/pear-build-root/APC-3.1.5/libtool --mode=compile cc  -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.5/include -I/var/tmp/pear-build-root/APC-3.1.5/main -I/var/tmp/APC -I/usr/include/PHP -I/usr/include/PHP/main -I/usr/include/PHP/TSRM -I/usr/include/PHP/Zend -I/usr/include/PHP/ext -I/usr/include/PHP/ext/date/lib  -DHAVE_CONfig_H  -g -O2   -c /var/tmp/APC/apc.c -o apc.lo
mkdir .libs
 cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.5/include -I/var/tmp/pear-build-root/APC-3.1.5/main -I/var/tmp/APC -I/usr/include/PHP -I/usr/include/PHP/main -I/usr/include/PHP/TSRM -I/usr/include/PHP/Zend -I/usr/include/PHP/ext -I/usr/include/PHP/ext/date/lib -DHAVE_CONfig_H -g -O2 -c /var/tmp/APC/apc.c  -fPIC -DPIC -o .libs/apc.o
In file included from /var/tmp/APC/apc.c:44:
/usr/include/PHP/ext/pcre/PHP_pcre.h:29:18: error: pcre.h: No such file or directory
In file included from /var/tmp/APC/apc.c:44:
/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:369: error: expected specifier-qualifier-list before 'pcre'
/var/tmp/APC/apc.c: In function 'apc_regex_compile_array':
/var/tmp/APC/apc.c:430: error: 'apc_regex' has no member named 'preg'
/var/tmp/APC/apc.c:430: error: 'apc_regex' has no member named 'preg'
/var/tmp/APC/apc.c:431: error: 'apc_regex' has no member named 'nreg'
/var/tmp/APC/apc.c:431: error: 'apc_regex' has no member named 'nreg'
/var/tmp/APC/apc.c: In function 'apc_regex_match_array':
/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

有人可以帮我解决这个问题吗?

我安装了所有可靠的东西……就像

yum install PHP-devel httpd-devel

yum groupinstall’开发工具’

yum groupinstall’开发库’

而且还没什么……〜.〜

尝试
yum install pcre-devel

在安装APC之前.

关于Debian的使用

aptitude install libpcre3-dev

代替.

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...