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

相关推荐
難釋懷3 天前
Nginx-Openresty
nginx·junit·openresty
小努蛋3 天前
linux编译openresty异常问题,lua_cjson.c:706:5: 错误: ‘for‘ 循环初始化声明只在 C99 或 C++ 模式下允许
开发语言·lua·openresty
翰林小院1 个月前
【云原生监控】 Grafana/Prometheus/Promtail/Loki/Tempo
openresty
白驹过隙不负青春1 个月前
OpenResty 1.29.2.5 部署 + Nginx平滑升级运维文档
nginx·openresty
Cry丶1 个月前
一次 FTP 上传引发 504 Gateway Timeout 的排查复盘
java·nginx·ftp·openresty·被动模式·504 gateway·生产问题排查
吴懿不在1 个月前
apisix~OpenResty各阶段的介绍
openresty
章老师说1 个月前
NGINX官方谈Lua风险:这其实是两条网关技术路线之争
运维·nginx·负载均衡·lua·openresty
装不满的克莱因瓶2 个月前
基于 OpenResty 扩展开发实现动态服务注册与发现能力
java·开发语言·架构·openresty
wu8587734572 个月前
OpenResty 源站被扫描的排查与防御实战:Cloudflare + DOCKER-USER + Fail2Ban 最全方案解析
docker·容器·openresty
章老师说2 个月前
B站网关事故背后:OpenResty 与 Lua 的稳定性代价
nginx·云原生·负载均衡·lua·openresty