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

相关推荐
java搬砖工-苤-初心不变14 小时前
OpenResty 配合 Lua 脚本的使用
开发语言·lua·openresty
观测云3 天前
Openresty Tracing 最佳实践
openresty
我发在否6 天前
Lua > OpenResty HelloWorld
lua·openresty
Mr. Cao code6 天前
探索OpenResty:高性能Web开发利器
linux·运维·服务器·前端·nginx·ubuntu·openresty
我发在否8 天前
Lua > Mac Mini M4安装openresty
macos·lua·openresty
Volunteer Technology1 个月前
openresty-lua-redis案例
redis·lua·openresty
i-阿松!1 个月前
Django + Vue 项目部署(1panel + openresty)
vue.js·django·openresty
hzsnone1 个月前
公网服务器上Nginx或者Openresty如何屏蔽IP直接扫描
服务器·nginx·openresty
hzsnone2 个月前
Openresty 支持HTTP/3协议和QUIC配置
网络协议·openresty