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

【已解答】安装云锁无法编译NGINX

发表在 Linux面板2020-10-30 17:17 [复制链接] 1 2416

我本身宝塔安装的NGINX 1.18.0
安装云锁的时候要重新下载NGINX并重新编译加载云锁,结果出现

checking for struct dirent.d_type ... found
checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
checking for sysconf(_SC_LEVEL1_DCACHE_LINESIZE) ... found
checking for openat(), fstatat() ... found
checking for getaddrinfo() ... found
configuring additional modules
adding module in srclib/ngx_devel_kit
./configure: error: no srclib/ngx_devel_kit/config was found



请问该怎么解决,宝塔官方的NGINX目录下貌似没有srclib这个目录,导致编译加载模块失败


下面是我的编译NGINX的代码


--user=www --group=www --prefix=/www/server/nginx --add-module=srclib/ngx_devel_kit --add-module=srclib/lua_nginx_module --add-module=srclib/ngx_cache_purge --add-module=srclib/nginx-sticky-module --with-openssl=srclib/openssl --with-pcre=srclib/pcre-8.43 --with-http_v2_module --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-http_stub_status_module --with-http_ssl_module --with-http_image_filter_module --with-http_gzip_static_module --with-http_gunzip_module --with-ipv6 --with-http_sub_module --with-http_flv_module --with-http_addition_module --with-http_realip_module --with-http_mp4_module --with-ld-opt=-Wl,-E --with-cc-opt=-Wno-error --with-http_dav_module --add-module=srclib/nginx-dav-ext-module --add-module=/root/nginx-plugin-master

使用道具 举报 只看该作者 回复
发表于 2020-10-30 18:15:53 | 显示全部楼层
如需要编译,请在nginx.sh脚本内添加。

脚本路径:/www/server/panel/install/下
3 [2].png
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术免费分析

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

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