Chinaunix

标题: php安装APC模块时遇到问题 [打印本页]

作者: tangshengwei    时间: 2014-07-11 18:11
标题: php安装APC模块时遇到问题
本帖最后由 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



作者: xc07131353    时间: 2015-07-23 18:21
有解决吗?,我也遇到这个问题是不是php版本问题?
作者: xc07131353    时间: 2015-07-23 18:25
php5.5的版本用zend
作者: jesse_linux    时间: 2016-04-07 20:39
看大家问的挺多的 就总结分享出来啦
http://www.cnblogs.com/study-notes/articles/5365332.html





欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2