编译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

相关推荐
万山y2 天前
OpenResty反向代理
openresty
古月的三个锦囊18 天前
Nginx openresty web服务 与 Go 原生web服务性能对比
nginx·go·openresty
Julian.zhou1 个月前
MCP服务:五分钟实现微服务治理革命,无缝整合Nacos/Zookeeper/OpenResty
人工智能·微服务·zookeeper·交互·openresty
PatrickYao04222 个月前
雨云云应用测评!内测持续进行中!
mysql·部署·网站搭建·openresty·rca
ZZDICT2 个月前
OpenResty(Lua)+Redis实现动态封禁IP
redis·nginx·lua·openresty
衣舞晨风2 个月前
Apache APISIX 架构浅析
架构·apache·openresty·apisix
衣舞晨风2 个月前
NGINX 执行阶段与OpenResty的 *_by_lua指令
nginx·lua·openresty·执行阶段
dgiij3 个月前
对免认证服务提供apikey验证
nginx·http·lua·llama·openresty
蕴微轩3 个月前
用openresty和lua实现壁纸投票功能
lua·openresty
xyc12113 个月前
OpenResty
openresty