./configure: error: SSL modules require the OpenSSL library. You can either do not enable the module
创始人
2024-11-13 14:06:50
0

 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= 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即可,具体步骤如下:

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 

相关内容

热门资讯

黑科技ai(WPK机制)外挂透... 黑科技ai(WPK机制)外挂透明挂辅助安装(透视)固有是有挂(真实有挂)-哔哩哔哩是一款可以让一直输...
黑科技辅助!wpk黑科技软件可... 黑科技辅助!wpk黑科技软件可信(透视)原本存在有挂(有挂教学)-哔哩哔哩;暗藏猫腻!wpk黑科技软...
黑科技辅助(pokerist)... 黑科技辅助(pokerist)外挂透明挂辅助安装(透视)微扑克教程(2022已更新)(哔哩哔哩);1...
黑科技辅助!wpk德州透视辅助... 黑科技辅助!wpk德州透视辅助(透视)软件透明挂ai辅助工具(果然存在有挂)-哔哩哔哩是一款可以让一...
黑科技计算(红龙扑克电脑)外挂... 黑科技计算(红龙扑克电脑)外挂透明挂辅助软件(透视)本来是真的有挂(有挂详情)-哔哩哔哩是一款可以让...
黑科技辅助!wpk外挂第一视角... 黑科技辅助!wpk外挂第一视角(透视)好像真的有挂(存在有挂)-哔哩哔哩是一款可以让一直输的玩家,快...
黑科技辅助(wEPOKE)外挂... 黑科技辅助(wEPOKE)外挂透明挂辅助插件(透视)可靠技巧(2025已更新)(哔哩哔哩);大家肯定...
黑科技辅助!fishpoker... 黑科技辅助!fishpoker有挂(透视)软件透明挂ai辅助软件(一直有挂)-哔哩哔哩是一款可以让一...
黑科技工具(德州ai测试)外挂... 黑科技工具(德州ai测试)外挂透明挂辅助插件(透视)确实有挂(确实有挂)-哔哩哔哩;1、超多福利:超...
黑科技辅助!微扑克ai代打德州... 黑科技辅助!微扑克ai代打德州(透视)真是是真的有挂(有挂解密)-哔哩哔哩;详细微扑克ai代打德州攻...