免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 11208 | 回复: 3
打印 上一主题 下一主题

php安装APC模块时遇到问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-07-11 18:11 |只看该作者 |倒序浏览
本帖最后由 tangshengwei 于 2014-07-11 18:12 编辑

环境:CentOS release 6.5   64位       内核:2.6.32-431.el6.x86_64
php版本:PHP Version 5.5.14   APC版本:3.1.13

操作步骤:wget http://pecl.php.net/get/APC-3.1.13.tgz
tar xzvf APC-3.1.13.tgz
cd APC-3.1.13
/usr/local/php/bin/phpize
./configure --enable-apc --enable-apc-mmap --with-php-config=/usr/local/php/bin/php-config --prefix=/usr/local/apc
make && make install

make的时候就遇到了问题;求大神解决;
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
[root@keepalive+nginx+master APC-3.1.13]# make
/bin/sh /tmp/php/APC-3.1.13/libtool --mode=compile cc  -I. -I/tmp/php/APC-3.1.13 -DPHP_ATOM_INC -I/tmp/php/APC-3.1.13/include -I/tmp/php/APC-3.1.13/main -I/tmp/php/APC-3.1.13 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/php/APC-3.1.13/apc_compile.c -o apc_compile.lo
cc -I. -I/tmp/php/APC-3.1.13 -DPHP_ATOM_INC -I/tmp/php/APC-3.1.13/include -I/tmp/php/APC-3.1.13/main -I/tmp/php/APC-3.1.13 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/php/APC-3.1.13/apc_compile.c  -fPIC -DPIC -o .libs/apc_compile.o
/tmp/php/APC-3.1.13/apc_compile.c: 在函数‘my_copy_class_entry’中:
/tmp/php/APC-3.1.13/apc_compile.c:755: 警告:从不兼容的指针类型赋值
/tmp/php/APC-3.1.13/apc_compile.c: 在函数‘apc_copy_class_entry_for_execution’中:
/tmp/php/APC-3.1.13/apc_compile.c:1956: 警告:从不兼容的指针类型赋值
/tmp/php/APC-3.1.13/apc_compile.c: 在函数‘apc_copy_trait_alias’中:
/tmp/php/APC-3.1.13/apc_compile.c:2379: 错误:‘zend_trait_alias’没有名为‘function’的成员
/tmp/php/APC-3.1.13/apc_compile.c:2380: 错误:‘zend_trait_alias’没有名为‘function’的成员
/tmp/php/APC-3.1.13/apc_compile.c:2380: 错误:‘zend_trait_alias’没有名为‘function’的成员
/tmp/php/APC-3.1.13/apc_compile.c: 在函数‘apc_copy_trait_precedence’中:
/tmp/php/APC-3.1.13/apc_compile.c:2416: 错误:‘zend_trait_precedence’没有名为‘function’的成员
/tmp/php/APC-3.1.13/apc_compile.c:2417: 错误:‘zend_trait_precedence’没有名为‘function’的成员
/tmp/php/APC-3.1.13/apc_compile.c:2417: 错误:‘zend_trait_precedence’没有名为‘function’的成员
make: *** [apc_compile.lo] 错误 1


论坛徽章:
0
2 [报告]
发表于 2015-07-23 18:21 |只看该作者
有解决吗?,我也遇到这个问题是不是php版本问题?

论坛徽章:
0
3 [报告]
发表于 2015-07-23 18:25 |只看该作者
php5.5的版本用zend

论坛徽章:
0
4 [报告]
发表于 2016-04-07 20:39 |只看该作者
看大家问的挺多的 就总结分享出来啦
http://www.cnblogs.com/study-notes/articles/5365332.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP