我无法安装 APC

Mik*_*Rev 2 installation php5 pecl alternative-php-cache

我有 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
Run Code Online (Sandbox Code Playgroud)

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

我尝试做 a $ yum clean all,但没有任何区别。

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

thi*_*ice 8

yum install pcre-devel. 您需要与 Perl 兼容的正则表达式库开发头文件

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