宝塔用户_togmv_f089 发表于 2025-2-7 11:16:47

【待反馈】php8.3安装redis扩展失败,怎么办?

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:宝塔面板9.0
系统版本:centos7.5 64位
问题描述:php8.3安装redis扩展失败
相关截图(日志、错误):/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: *** Error 1error

堡塔运维南一 发表于 2025-2-7 14:54:43

您好,可以像这样点开安装失败的详情,然后把报错的详细信息截图发出来看看

紫色风铃 发表于 2025-2-13 09:50:34

解决了大佬,我也是这个错误

宝塔用户_togmv_f089 发表于 2025-3-7 17:48:00

紫色风铃 发表于 2025-2-13 09:50
解决了大佬,我也是这个错误

怎么解决的,我是重装的

紫色风铃 发表于 2025-3-8 15:25:06

宝塔用户_togmv_f089 发表于 2025-3-7 17:48
怎么解决的,我是重装的

还没解决吗?我可以给你解决

宝塔用户_ffeagc 发表于 2025-3-10 14:38:58

紫色风铃 发表于 2025-3-8 15:25
还没解决吗?我可以给你解决

怎么解决的?
页: [1]
查看完整版本: 【待反馈】php8.3安装redis扩展失败,怎么办?