centos – PECL APC安装 – 错误:’make’失败

运行sudo pecl install apc时出现以下错误.
/var/tmp/APC/apc_cache.c: In function '_apc_cache_user_update':
/var/tmp/APC/apc_cache.c:818: error: 'IS_CONSTANT_INDEX' undeclared (first use in this function)
/var/tmp/APC/apc_cache.c:818: error: (Each undeclared identifier is reported only once
/var/tmp/APC/apc_cache.c:818: error: for each function it appears in.)
/var/tmp/APC/apc_cache.c:820: error: 'IS_CONSTANT_ARRAY' undeclared (first use in this function)
make: *** [apc_cache.lo] Error 1
ERROR: `make' Failed

我安装了PHP 5.5.12,以下这些库都是最新的:

sudo yum install PHP-pear
sudo yum install PHP-devel
sudo yum install httpd-devel
sudo yum install gcc
sudo yum install pcre-devel
sudo pecl install apc-beta

谢谢!

APC不支持PHP 5.5,它最新更新的版本是5.4,除了2012年的错误修复外,它没有看到更新.

如果你确实想让它与5.5一起使用,你可以尝试重新定义IS_CONSTANT_ARRAY和IS_CONSTANT_INDEX为IS_CONSTANT_AST,因为它已经取代了它们,但是如果它最终编译的话,这并不能保证成功.

相关文章

Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native