首页
下载
文档
问答社区
视频
捐赠
源代码
AI 助理
赞助商
CRMEB
Apipost
腾讯云
微擎
禅道
51Talk
商业产品
Swoole AI 智能文档翻译器
Swoole-Compiler PHP 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
php8.1 安装swoole 5.0.1扩展报错
### 问题描述 php8.1 安装swoole 5.0.1扩展报错,make命令报的错,已经安装了curl 7.65.3 ### Swoole版本,PHP版本,以及操作系统版本信息 swoole-5.0.1 php-8.1.13 ### 相关代码 ```php 请将代码粘贴至此处(请勿用截图) ``` /bin/sh /root/swoole-5.0.1/libtool --mode=compile g++ -I. -I/root/swoole-5.0.1 -I/root/swoole-5.0.1/include -I/root/swoole-5.0.1/main -I/root/swoole-5.0.1 -I/www/server/php/81/include/php -I/www/server/php/81/include/php/main -I/www/server/php/81/include/php/TSRM -I/www/server/php/81/include/php/Zend -I/www/server/php/81/include/php/ext -I/www/server/php/81/include/php/ext/date/lib -I/root/swoole-5.0.1 -I/root/swoole-5.0.1/include -I/root/swoole-5.0.1/ext-src -I/root/swoole-5.0.1/thirdparty -I/root/swoole-5.0.1/thirdparty/hiredis -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -DENABLE_PHP_SWOOLE -DZEND_COMPILE_DL_EXT=1 -c /root/swoole-5.0.1/ext-src/swoole_curl.cc -o ext-src/swoole_curl.lo -MMD -MF ext-src/swoole_curl.dep -MT ext-src/swoole_curl.lo g++ -I. -I/root/swoole-5.0.1 -I/root/swoole-5.0.1/include -I/root/swoole-5.0.1/main -I/root/swoole-5.0.1 -I/www/server/php/81/include/php -I/www/server/php/81/include/php/main -I/www/server/php/81/include/php/TSRM -I/www/server/php/81/include/php/Zend -I/www/server/php/81/include/php/ext -I/www/server/php/81/include/php/ext/date/lib -I/root/swoole-5.0.1 -I/root/swoole-5.0.1/include -I/root/swoole-5.0.1/ext-src -I/root/swoole-5.0.1/thirdparty -I/root/swoole-5.0.1/thirdparty/hiredis -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -DENABLE_PHP_SWOOLE -DZEND_COMPILE_DL_EXT=1 -c /root/swoole-5.0.1/ext-src/swoole_curl.cc -MMD -MF ext-src/swoole_curl.dep -MT ext-src/swoole_curl.lo -fPIC -DPIC -o ext-src/.libs/swoole_curl.o In file included from /root/swoole-5.0.1/ext-src/swoole_curl.cc:17:0: /root/swoole-5.0.1/ext-src/php_swoole_curl.h:31:2: error: #error "require cURL version 7.56.0 or later" #error "require cURL version 7.56.0 or later" ### 你期待的结果是什么?实际看到的错误信息又是什么? ![](https://wenda-1252906962.file.myqcloud.com/uploads/202308/14736_64d3b32bda1b5.png)
发布于1年前 · 34 次浏览 · 来自
提问
laoma
### 问题描述 php8.1 安装swoole 5.0.1扩展报错,make命令报的错,已经安装了curl 7.65.3 ### Swoole版本,PHP版本,以及操作系统版本信息 swoole-5.0.1 php-8.1.13 ### 相关代码 ```php 请将代码粘贴至此处(请勿用截图) ``` /bin/sh /root/swoole-5.0.1/libtool --mode=compile g++ -I. -I/root/swoole-5.0.1 -I/root/swoole-5.0.1/include -I/root/swoole-5.0.1/main -I/root/swoole-5.0.1 -I/www/server/php/81/include/php -I/www/server/php/81/include/php/main -I/www/server/php/81/include/php/TSRM -I/www/server/php/81/include/php/Zend -I/www/server/php/81/include/php/ext -I/www/server/php/81/include/php/ext/date/lib -I/root/swoole-5.0.1 -I/root/swoole-5.0.1/include -I/root/swoole-5.0.1/ext-src -I/root/swoole-5.0.1/thirdparty -I/root/swoole-5.0.1/thirdparty/hiredis -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -DENABLE_PHP_SWOOLE -DZEND_COMPILE_DL_EXT=1 -c /root/swoole-5.0.1/ext-src/swoole_curl.cc -o ext-src/swoole_curl.lo -MMD -MF ext-src/swoole_curl.dep -MT ext-src/swoole_curl.lo g++ -I. -I/root/swoole-5.0.1 -I/root/swoole-5.0.1/include -I/root/swoole-5.0.1/main -I/root/swoole-5.0.1 -I/www/server/php/81/include/php -I/www/server/php/81/include/php/main -I/www/server/php/81/include/php/TSRM -I/www/server/php/81/include/php/Zend -I/www/server/php/81/include/php/ext -I/www/server/php/81/include/php/ext/date/lib -I/root/swoole-5.0.1 -I/root/swoole-5.0.1/include -I/root/swoole-5.0.1/ext-src -I/root/swoole-5.0.1/thirdparty -I/root/swoole-5.0.1/thirdparty/hiredis -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -DENABLE_PHP_SWOOLE -DZEND_COMPILE_DL_EXT=1 -c /root/swoole-5.0.1/ext-src/swoole_curl.cc -MMD -MF ext-src/swoole_curl.dep -MT ext-src/swoole_curl.lo -fPIC -DPIC -o ext-src/.libs/swoole_curl.o In file included from /root/swoole-5.0.1/ext-src/swoole_curl.cc:17:0: /root/swoole-5.0.1/ext-src/php_swoole_curl.h:31:2: error: #error "require cURL version 7.56.0 or later" #error "require cURL version 7.56.0 or later" ### 你期待的结果是什么?实际看到的错误信息又是什么? ![](https://wenda-1252906962.file.myqcloud.com/uploads/202308/14736_64d3b32bda1b5.png)
赞
0
分享
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
评论
2023-08-19
Rango
你的系统可能存在多个 libcurl ,编译 swoole 时使用的是旧版本。建议使用 `swoole-cli` 或者换一个高版本操作系统编译
赞
0
回复
微信公众号
热门内容
暂无回复的问答
- CodeGalaxy K3s 轻量集群节点之间如何实现负载均衡
- 关于openssl CURL WARNING swSSL_connect: SSL_connect(fd=69) failed. Error: error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small[1|394]
- 多个模型如何进行事务异常回退?
- websocket开启wss报错
- 协程tcp服务器如何使用多进程?recv()方法接收信息,打印出来的pid一直是同一个。没用使用到多进程啊。