./configure: error: SSL modules require the OpenSSL library. You can either do not enable the module

这篇具有很好参考价值的文章主要介绍了./configure: error: SSL modules require the OpenSSL library. You can either do not enable the module。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

 Ubuntu22系统,参考nginx文档Support for QUIC and HTTP/3 执行如下命令:

./configure
    --with-debug
    --with-http_v3_module
    --with-cc-opt="-I../boringssl/include"
    --with-ld-opt="-L../boringssl/build/ssl
                   -L../boringssl/build/crypto"

时报错如下:

./configure: error: SSL modules require the OpenSSL library.
You can either do not enable the modules, or install the OpenSSL library
into the system, or build the OpenSSL library statically from the source
with nginx by using --with-openssl=<path> option.

但其实系统是有openssl库的:

➜  out git:(v1.1.0) ✗ openssl version
OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)

必应了一下,参考了这两个:https://forum.nginx.org/read.php?2,299223  #2605 (NGINX + BoringSSL build error (NGINX 1.25.4 required Openssl)) – nginx

编译nginx时指定为c++ linker即可,具体步骤如下:文章来源地址https://www.toymoban.com/news/detail-859841.html

git clone --recurse-submodules -j8 https://github.com/google/ngx_brotli
cd ngx_brotli/deps/brotli
mkdir out && cd out
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS="-Ofast -m64 -march=native -mtune=native -flto -funroll-loops -ffunction-sections -fdata-sections -Wl,--gc-sections" -DCMAKE_CXX_FLAGS="-Ofast -m64 -march=native -mtune=native -flto -funroll-loops -ffunction-sections -fdata-sections -Wl,--gc-sections" -DCMAKE_INSTALL_PREFIX=./installed ..
cmake --build . --config Release --target brotlienc
cd ../../../..

hg clone https://hg.nginx.org/nginx
cd nginx
./auto/configure --user=www --group=www --prefix=/www/server/nginx --with-pcre --add-module=../ngx_brotli --with-http_v2_module --with-stream --with-stream_ssl_module --with-http_ssl_module --with-http_gzip_static_module --with-http_gunzip_module --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-ld-opt='-ljemalloc' --with-http_dav_module --with-http_v3_module --with-cc=c++ --with-cc-opt='-I ../boringssl/include -x c' --with-ld-opt='-L../boringssl/build/ssl -L../boringssl/build/crypto'
make 
sudo make install
cd /usr/sbin
sudo ln -s /www/server/nginx/sbin/nginx
nginx -version
# nginx version: nginx/1.25.5

到了这里,关于./configure: error: SSL modules require the OpenSSL library. You can either do not enable the module的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • ./configure: error: the HTTP rewrite module requires the PCRE library.

    ./configure: error: the HTTP rewrite module requires the PCRE library. 这个错误提示告诉你,在运行 configure 脚本时遇到了问题,原因是 HTTP rewrite 模块需要 PCRE 库的支持。 PCRE (Perl Compatible Regular Expressions) 是一种用来处理正则表达式的库,它主要用于文本搜索和替换。 要解决这个问题,你需

    2024年01月23日
    浏览(30)
  • ./configure: error: the HTTP XSLT module requires the libxml2/libx ubuntu

    一直服务器好好的用的宝塔面板,最近换了一台服务器,还是ubuntu系统盘,什么也没有改结果安装完宝塔面板,怎么也装不上nginx,看了下日志,提示: ./configure: error: the HTTP XSLT module requires the libxml2/libxslt librar 解决办法: 用的以上代码一下就好了,特此记录,一下记录是出现

    2024年02月13日
    浏览(35)
  • 解决WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python

    目录 解决WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python不可用 的问题 问题描述 解决方案 1. 检查Python环境 2. 安装所需的依赖 对于Debian/Ubuntu系统: 对于Fedora/CentOS系统: 对于MacOS系统: 对于Windows系统: 3. 重新安装Python环境 4. 使用另一个包管理器

    2024年02月05日
    浏览(47)
  • 已解决WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python

    已解决(pip升级报错) WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Requirement already satisfied: pip in e:anacondainstall_rootlibsite-packages (21.0.1) WARNING: Retrying (Retry(total=4, connect=None, read=None, redi

    2024年02月02日
    浏览(36)
  • 解决错误:pip is configured with locations that require TLS/SSL,the ssl module in Python is not available

    解决错误:pip is configured with locations that require TLS/SSL,the ssl module in Python is not available。 pip安装包出现错误类似如下: WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting protobuf=4.25.2 (fr

    2024年02月19日
    浏览(35)
  • 【阿里云 centos7安装python3.12遇到的坑,openssl】Could not build the ssl module! Python requires a OpenSSL 1.1.1

    基于源码安装python 3.12,执行 make 出现如下错误 问题大概描述:找不到ssl模块。该问题如果不解决的话,缺少 OpenSSL 模块可能会影响许多涉及网络通信和安全加密的 Python 应用程序和库。例如:ssl,request模块等好多模块都没法使用。所以要要去openssl官网下载安装,再来安装p

    2024年04月28日
    浏览(21)
  • configure: error: openSSL library not found.解决方案

      大家好,我是爱编程的喵喵。双985硕士毕业,现担任全栈工程师一职,热衷于将数据思维应用到工作与生活中。从事机器学习以及相关的前后端开发工作。曾在阿里云、科大讯飞、CCF等比赛获得多次Top名次。现为CSDN博客专家、人工智能领域优质创作者。喜欢通过博客创作

    2024年01月24日
    浏览(37)
  • glibc编译时报错:configure: error:*** LD_LIBRARY_PATH shouldn‘t contain the current directory when ***

    在编译glibc时,进到glibc源码里: cd glibc-source mkdir build cd build 开始配置,执行了如下命令: ../configure --prefix=/opt/glibc 然后报如下错误: “configure: WARNING: *** These auxiliary programs are missing or incompatible versions: makeinfo *** some features or tests will be disabled. *** Check the INSTALL file for requir

    2024年02月11日
    浏览(30)
  • You may need to configure your browser or application to trust the Charles Root Certificate. See SSL

    抓包环境 雷电9模拟器,Charles v4.6.3 抓包过程中遇到的问题 一、 抓不到包,Charles一片空白 解决方案:Postern设置问题,点我点我点我 二、 抓到的https全是unknown,并且提示: You may need to configure your browser or application to trust the Charles Root Certificate. See SSL Proxying in the Help menu. 解决

    2024年02月03日
    浏览(38)
  • A fatal error occurred. The required library hostfxr.dll could not be found.错误处理

    一个可控制台程序使用.NET 6开发,发行版运行出现如下错误: A fatal error occurred. The required library hostfxr.dll could not be found. If this is a self-contained application, that library should exist in [D:xxxServer]. If this is a framework-dependent application, install the runtime in the global location [C:Program Files (x86)d

    2024年02月12日
    浏览(40)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包