V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
chuhemiao
V2EX  ›  程序员

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

  •  
  •   chuhemiao · 2016-03-14 18:57:33 +08:00 · 3362 次点击
    这是一个创建于 3205 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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

    5 条回复    2016-03-15 16:04:42 +08:00
    onion83
        1
    onion83  
       2016-03-15 09:10:33 +08:00
    php 版本太旧了,建议先升级到 5.5 以上吧。
    ershisi
        2
    ershisi  
       2016-03-15 09:14:10 +08:00
    /usr/local/php/include/php/Zend/zend_variables.h zend 的头文件问题。估计是版本不对应吧?
    chuhemiao
        3
    chuhemiao  
    OP
       2016-03-15 10:03:57 +08:00
    @onion83 php 的版本旧?不至于把,那我去升级下试试
    @ershisi 也是 php 的版本?
    ohahaha
        4
    ohahaha  
       2016-03-15 14:47:48 +08:00
    直接用 7 吧 我已经都搭完
    lbp0200
        5
    lbp0200  
       2016-03-15 16:04:42 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5018 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 01:21 · PVG 09:21 · LAX 17:21 · JFK 20:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.