我无法安装APC

我有PHP 5.3.6和Ubuntu的。 我想安装APC。

当我做$ pecl install apc ,我最终得到一个错误:

 In file included from /tmp/pear/temp/APC/apc.c:44:0: /usr/include/php5/ext/pcre/php_pcre.h:29:18: fatal error: pcre.h: No such file or directory compilation terminated. make: *** [apc.lo] Error 1 ERROR: `make' failed 

当我尝试做$ yum install php-pecl-apc我总是得到错误: No package "php-pecl-apc" available

我尝试了$ yum clean all ,但没有什么区别。

我不知道如何继续。 你有什么build议?

yum install pcre-devel 。 您需要Perl兼容的正则expression式库开发头文件

你提到Ubuntu,不妨使用apt-get install libpcre3-dev