yaf 安装在 centos 上,不知道从那下手了!

2016-03-14 18:57:33 +08:00
 chuhemiao

1.yaf 版本 2.3.3
2.php 版本 5.4.45
3.error :
/bin/sh /usr/local/lib64/yaf-yaf-2.3.3/libtool --mode=compile cc -I. -I/usr/local/lib64/yaf-yaf-2.3.3 -DPHP_ATOM_INC -I/usr/local/lib64/yaf-yaf-2.3.3/include -I/usr/local/lib64/yaf-yaf-2.3.3/main -I/usr/local/lib64/yaf-yaf-2.3.3 -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 /usr/local/lib64/yaf-yaf-2.3.3/yaf.c -o yaf.lo
libtool: compile: cc -I. -I/usr/local/lib64/yaf-yaf-2.3.3 -DPHP_ATOM_INC -I/usr/local/lib64/yaf-yaf-2.3.3/include -I/usr/local/lib64/yaf-yaf-2.3.3/main -I/usr/local/lib64/yaf-yaf-2.3.3 -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 /usr/local/lib64/yaf-yaf-2.3.3/yaf.c -fPIC -DPIC -o .libs/yaf.o
/usr/local/lib64/yaf-yaf-2.3.3/yaf.c: In function ‘ OnUpdateSeparator ’:
/usr/local/lib64/yaf-yaf-2.3.3/yaf.c:60: warning: assignment from incompatible pointer type
/usr/local/lib64/yaf-yaf-2.3.3/yaf.c:61: error: ‘ new_value_length ’ undeclared (first use in this function)
/usr/local/lib64/yaf-yaf-2.3.3/yaf.c:61: error: (Each undeclared identifier is reported only once
/usr/local/lib64/yaf-yaf-2.3.3/yaf.c:61: error: for each function it appears in.)
/usr/local/lib64/yaf-yaf-2.3.3/yaf.c: In function ‘ zm_deactivate_yaf ’:
/usr/local/lib64/yaf-yaf-2.3.3/yaf.c:231: warning: passing argument 1 of ‘_zval_ptr_dtor ’ from incompatible pointer type
/usr/local/php/include/php/Zend/zend_variables.h:112: note: expected ‘ struct zval ’ but argument is of type ‘ struct zval **’
make: *
* [yaf.lo] Error 1

3338 次点击
所在节点    程序员
5 条回复
onion83
2016-03-15 09:10:33 +08:00
php 版本太旧了,建议先升级到 5.5 以上吧。
ershisi
2016-03-15 09:14:10 +08:00
/usr/local/php/include/php/Zend/zend_variables.h zend 的头文件问题。估计是版本不对应吧?
chuhemiao
2016-03-15 10:03:57 +08:00
@onion83 php 的版本旧?不至于把,那我去升级下试试
@ershisi 也是 php 的版本?
ohahaha
2016-03-15 14:47:48 +08:00
直接用 7 吧 我已经都搭完
lbp0200
2016-03-15 16:04:42 +08:00

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/263440

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX