首页
下载
文档
社区
视频
捐赠
源代码
赞助商
AOT 编译器
AI 助理
商业产品
PHP AOT 原生编译器
Swoole-Compiler 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
使用swoole的http2客户端编译时报错:错误 #error Enable http2 support, require nghttp2 library 解决
编译swoole的时候--enable-http2的时候报如下错误 In file included from /home/xmc/download/swoole-src-2.1.0/swoole_server.c:17:0: /home/xmc/download/swoole-src-2.1.0/php_swoole.h:142:2: 错误:#error "Enable http2 support, require nghttp2 library." #error "Enable http2 support, require nghttp2 library." 这是因为swoole的http2模块依赖nghttp2库所以安装nghttp2即可 安装方式 wget https://github.com/nghttp2/nghttp2/releases/download/v1.30.0/nghttp2-1.30.0.tar.bz2 tar -jxvf nghttp2-1.30.0.tar.bz2 cd nghttp2-1.30.0 ./configure make 从头开始安装一次swoole扩展即可 在这做个记录。 方便之后有遇到相同问题的友友查看
发布于7年前 · 3 次浏览 · 来自
提问
老
老秃驴
编译swoole的时候--enable-http2的时候报如下错误 In file included from /home/xmc/download/swoole-src-2.1.0/swoole_server.c:17:0: /home/xmc/download/swoole-src-2.1.0/php_swoole.h:142:2: 错误:#error "Enable http2 support, require nghttp2 library." #error "Enable http2 support, require nghttp2 library." 这是因为swoole的http2模块依赖nghttp2库所以安装nghttp2即可 安装方式 wget https://github.com/nghttp2/nghttp2/releases/download/v1.30.0/nghttp2-1.30.0.tar.bz2 tar -jxvf nghttp2-1.30.0.tar.bz2 cd nghttp2-1.30.0 ./configure make 从头开始安装一次swoole扩展即可 在这做个记录。 方便之后有遇到相同问题的友友查看
赞
0
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
登录
后参与评论
评论
2019-11-26
R
Richard
nghttp2 的安装,需要 make install,博主你少了一步。
赞
0
回复