运行sudo pecl install apc时出现以下错误.
原文链接:https://www.f2er.com/centos/373296.html/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
谢谢!