puf*_*muf 3 php centos php5 centos6.5 alternative-php-cache
运行时出现以下错误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
Run Code Online (Sandbox Code Playgroud)
我安装了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
Run Code Online (Sandbox Code Playgroud)
谢谢!
小智 6
APC 不支持 PHP 5.5,它更新使用的最后一个版本是 5.4,除了 2012 年的错误修复外,它没有看到更新。
如果您确实想让它与 5.5 一起使用,您可以尝试将 IS_CONSTANT_ARRAY 和 IS_CONSTANT_INDEX 重新定义为 IS_CONSTANT_AST,因为这已经取代了它们,但是如果最终编译成功,这并不能保证成功。
归档时间: |
|
查看次数: |
12070 次 |
最近记录: |