当前位置:论坛首页 > Linux面板 > 求助

【已解答】php8.3安装redis扩展报错

发表在 Linux面板3 小时前 [复制链接] 1 26

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:9.6.0
系统版本:CentOS 7.9.2009
问题描述:在php8.3中安装redis报错
相关截图(日志、错误):

creating libtoolappending configuration tag "CXX" to libtoolconfigure: patching config.h.inconfigure: creating ./config.statusconfig.status: creating config.h/bin/sh /www/server/panel/install/redis-6.1.0/libtool --tag=CC --mode=compile /opt/rh/devtoolset-7/root/usr/bin/gcc -I. -I/www/server/panel/install/redis-6.1.0 -I/www/server/panel/install/redis-6.1.0/include -I/www/server/panel/install/redis-6.1.0/main -I/www/server/panel/install/redis-6.1.0 -I/www/server/php/83/include/php -I/www/server/php/83/include/php/main -I/www/server/php/83/include/php/TSRM -I/www/server/php/83/include/php/Zend -I/www/server/php/83/include/php/ext -I/www/server/php/83/include/php/ext/date/lib -I/www/server/php/83/include/php/ext -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /www/server/panel/install/redis-6.1.0/redis.c -o redis.lo -MMD -MF redis.dep -MT redis.lomkdir .libs/opt/rh/devtoolset-7/root/usr/bin/gcc -I. -I/www/server/panel/install/redis-6.1.0 -I/www/server/panel/install/redis-6.1.0/include -I/www/server/panel/install/redis-6.1.0/main -I/www/server/panel/install/redis-6.1.0 -I/www/server/php/83/include/php -I/www/server/php/83/include/php/main -I/www/server/php/83/include/php/TSRM -I/www/server/php/83/include/php/Zend -I/www/server/php/83/include/php/ext -I/www/server/php/83/include/php/ext/date/lib -I/www/server/php/83/include/php/ext -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /www/server/panel/install/redis-6.1.0/redis.c -MMD -MF redis.dep -MT redis.lo -fPIC -DPIC -o .libs/redis.o/www/server/panel/install/redis-6.1.0/redis.c: In function ‘zim_Redis_multi’:/www/server/panel/install/redis-6.1.0/redis.c:1909:58: error: macro "strncmp" requires 3 arguments, but only 2 given} else if (strncmp(resp, ZEND_STRL("+OK")) != 0) {^/www/server/panel/install/redis-6.1.0/redis.c: In function ‘redis_response_enqueued’:/www/server/panel/install/redis-6.1.0/redis.c:2048:47: error: macro "strncmp" requires 3 arguments, but only 2 givenif (strncmp(resp, ZEND_STRL("+QUEUED")) == 0) {^/www/server/panel/install/redis-6.1.0/redis.c: In function ‘redis_sock_read_multibulk_multi_reply_loop’:/www/server/panel/install/redis-6.1.0/redis.c:2072:44: error: macro "strncmp" requires 3 arguments, but only 2 givenstrncmp(inbuf, ZEND_STRL("+OK")) != 0)^make: *** [redis.lo] Error 1error|-Successify --- 命令已执行! ---
使用道具 举报 只看该作者 回复
发表于 2 小时前 | 显示全部楼层
参考下面方法: aa.png
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

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