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

前端之家收集整理的这篇文章主要介绍了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

代替.

原文链接:https://www.f2er.com/php/139881.html

猜你在找的PHP相关文章