VPS侦探论坛

 找回密码
 注册
查看: 3368|回复: 3

LNMP1.4安装pthreads出错

[复制链接]
发表于 2018-3-7 01:47:56 | 显示全部楼层 |阅读模式

已在编译PHP中加入 --enable-maintainer-zts,现在不管是独立安装pthreads,还是pecl install pthreads安装都出错,还请军哥指点,对这方面算小白了...以下是错误提示附件:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2018-3-7 09:39:40 | 显示全部楼层


In file included from /tmp/pear/temp/pthreads/php_pthreads.h:43:0,
                 from /tmp/pear/temp/pthreads/php_pthreads.c:26:
/tmp/pear/temp/pthreads/classes/pool.h: 在函数‘zim_Pool_collect’中:
/tmp/pear/temp/pthreads/classes/worker.h:53:10: 错误:‘zend_fcall_info’没有名为‘function_table’的成员
  call.fci.function_table = &(w)->ce->function_table; \
          ^
/tmp/pear/temp/pthreads/classes/pool.h:293:4: 附注:in expansion of macro ‘PTHREADS_WORKER_COLLECTOR_INIT’
    PTHREADS_WORKER_COLLECTOR_INIT(call, Z_OBJ_P(worker));
    ^
/tmp/pear/temp/pthreads/classes/worker.h:55:57: 错误:‘zend_fcall_info’没有名为‘function_table’的成员
  call.fcc.function_handler = zend_hash_find_ptr(call.fci.function_table, Z_STR(call.fci.function_name)); \
                                                         ^
/tmp/pear/temp/pthreads/classes/pool.h:293:4: 附注:in expansion of macro ‘PTHREADS_WORKER_COLLECTOR_INIT’
    PTHREADS_WORKER_COLLECTOR_INIT(call, Z_OBJ_P(worker));
    ^
make: *** [php_pthreads.lo] 错误 1
ERROR: `make' failed

pecl上的pthreads是2016年的
建议去https://github.com/krakjoe/pthreads 下载最新的源码安装试试,php模块编译安装参考:https://www.vpser.net/manage/lnmp-php-install-ext.html
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2018-3-7 11:43:21 | 显示全部楼层

军哥,一样错误的,就算下载的是最新的...

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2018-3-7 18:43:46 | 显示全部楼层

回复 3# 的帖子




不清楚原因,建议他们github上反馈看看
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-24 13:17 , Processed in 0.027089 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表