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

相关推荐
難釋懷21 小时前
OpenResty实现Tomcat查询
tomcat·firefox·openresty
難釋懷1 天前
OpenResty基于ID负载均衡
junit·负载均衡·openresty
難釋懷2 天前
OpenResty-CJSON工具类
junit·openresty
難釋懷2 天前
OpenResty封装http工具
http·junit·openresty
he___H2 天前
Nginx+lua+openresty
nginx·lua·openresty
難釋懷4 天前
OpenResty查询Tomcat
tomcat·firefox·openresty
難釋懷4 天前
OpenResty监听请求
junit·openresty
難釋懷4 天前
OpenResty获取参数的API
junit·openresty
難釋懷5 天前
OpenResty请求参数处理
junit·openresty
難釋懷5 天前
OpenResty获取参数并返回
junit·openresty