编译OpenResty遇到找不到OpenSSL的解决办法

以OpenResty-1.19.9.1为例

编辑openresty-1.19.9.1/build/nginx-1.19.9/auto/lib/openssl/conf

conf 复制代码
CORE_INCS="$CORE_INCS $OPENSSL/.openssl/include"
CORE_DEPS="$CORE_DEPS $OPENSSL/.openssl/include/openssl/ssl.h"
CORE_LIBS="$CORE_LIBS $OPENSSL/.openssl/lib/libssl.a"
CORE_LIBS="$CORE_LIBS $OPENSSL/.openssl/lib/libcrypto.a"

将/.openssl去掉

conf 复制代码
CORE_INCS="$CORE_INCS $OPENSSL/include"
CORE_DEPS="$CORE_DEPS $OPENSSL/include/openssl/ssl.h"
CORE_LIBS="$CORE_LIBS $OPENSSL/lib/libssl.a"
CORE_LIBS="$CORE_LIBS $OPENSSL/lib/libcrypto.a"

重新编译提示usr/local/openssl/lib/libssl.a:没有那个文件或目录错误,需要将上面文件中的lib改为lib64

相关推荐
Volunteer Technology10 天前
openresty-lua-redis案例
redis·lua·openresty
i-阿松!16 天前
Django + Vue 项目部署(1panel + openresty)
vue.js·django·openresty
hzsnone18 天前
公网服务器上Nginx或者Openresty如何屏蔽IP直接扫描
服务器·nginx·openresty
hzsnone1 个月前
Openresty 支持HTTP/3协议和QUIC配置
网络协议·openresty
Narutolxy1 个月前
Nginx/OpenResty HTTP 请求处理阶段与 Lua 实践全解20250717
nginx·http·openresty
伊成2 个月前
保姆级安装OpenResty教程
openresty
Clownseven3 个月前
Nginx Lua模块(OpenResty)实战:动态化、智能化你的Nginx,实现复杂Web逻辑 (2025)
nginx·lua·openresty
龙哥·三年风水3 个月前
openresty+lua+redis把非正常访问的域名加入黑名单
redis·lua·openresty
大得3693 个月前
安装openresty使用nginx+lua,openresty使用jwt解密
nginx·lua·openresty
莱茵不哈哈3 个月前
OpenResty 深度解析:构建高性能 Web 服务的终极方案
nginx·lua·kong·openresty·conf