编译nginx报错SSL modules require the OpenSSL library.You can either do not enable the modules解决办法

在配置并编译OpenResty时遇到错误,提示SSL模块需要OpenSSL库。问题在于系统中存在多个OpenSSL版本。解决方法是通过`yum remove openssl-devel`卸载多余的OpenSSL开发库,或者在配置时指定OpenSSL库路径。
摘要由CSDN通过智能技术生成

sh ./configure --prefix=/opt/openresty/nginx
–with-cc-opt=‘-O2’
–add-module=…/ngx_devel_kit-0.3.1
–add-module=…/echo-nginx-module-0.62
–add-module=…/xss-nginx-module-0.06
–add-module=…/ngx_coolkit-0.2
–add-module=…/set-misc-nginx-module-0.32
–add-module=…/form-input-nginx-module-0.12
–add-module=…/encrypted-session-nginx-module-0.08
–add-module=…/srcache-nginx-module-0.32
–add-module=…/ngx_lua-0.10.20
–add-module=…/ngx_lua_upstream-0.07
–add-module=…/headers-more-nginx-module-0.33
–add-module=…/array-var-nginx-module-0.05
–add-module=…/memc-nginx-module-0.19
–add-module=…/redis2-nginx-module-0.15
–add-module=…/redis-nginx-module-0.3.7
–add-module=…/rds-json-nginx-module-0.15
–add-module=…/rds-csv-nginx-module-0.09
–add-module=…/ngx_stream_lua-0.0.10
–with-ld-opt=‘-Wl,-rpath,/opt/openresty/luajit/lib’
–with-http_stub_status_module --with-http_realip_module --with-http_v2_module --with-http_reqstat_module --add-module=/opt/openresty-1.19.9.1/bundle/nginx_upstream_session_sticky_module --add-module=/opt/openresty-1.19.9.1/bundle/nginx_upstream_check_module-master --add-module=/opt/openresty-1.19.9.1/bundle/lua-var-nginx-module --add-module=/opt/openresty-1.19.9.1/bundle/ngx_cache_purge-2.3 --add-module=/opt/openresty-1.19.9.1/bundle/ngx_http_geoip2_module --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-http_ssl_module
checking for OS
+ Linux 3.10.0-1160.42.2.el7.x86_64 x86_64
…checking for C compiler … found
+ using GNU C compiler
+ gcc version: 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC)
…checking for gcc -pipe switch … found
…checking for --with-ld-opt=“-Wl,-rpath,/opt/openresty/luajit/lib” … found
…checking for -Wl,-E switch … found
…checking for gcc builtin atomic operations … found
…checking for C99 variadic macros … found
…checking for gcc variadic macros … found
…checking for gcc builtin 64 bit byteswap … found
checking for unistd.h … found
checking for inttypes.h … found
checking for limits.h … found
checking for sys/filio.h … not found
checking for sys/param.h … found
checking for sys/mount.h … found
checking for sys/statvfs.h … found
checking for crypt.h … found
checking for Linux specific features
…checking for epoll … found
…checking for EPOLLRDHUP … found
…checking for EPOLLEXCLUSIVE … not found
…checking for O_PATH … found
…checking for sendfile() … found
…checking for sendfile64() … found
checking for sys/prctl.h … found
…checking for prctl(PR_SET_DUMPABLE) … found
…checking for prctl(PR_SET_KEEPCAPS) … found
…checking for capabilities … found
…checking for crypt_r() … found
checking for sys/vfs.h … found
checking for nobody group … found
…checking for poll() … found
…checking for /dev/poll … not found
…checking for kqueue … not found
…checking for crypt() … not found
…checking

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值