【发布时间】:2018-08-23 13:05:13
【问题描述】:
我的 curl 系统 (Centos7) 安装不支持 https。因此,我使用./configure --with-ssl 选项从source 和installed myself 下载了这个answer。
我在配置时收到以下警告:
checking OpenSSL linking with -ldl... no
checking OpenSSL linking with -ldl and -lpthread... no
checking for ssl_version in -laxtls... no
configure: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more.
configure: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, or --with-darwinssl to address this.
因此,我的 curl 版本不支持 https。
Open SSL 已安装在我的系统上:
[user@server curl-7.61.0]$ which openssl
/usr/bin/openssl
如何让我的 curl 安装找到 openssl 并支持 HTTPS?
【问题讨论】:
-
您是否安装了
openssl-devel,openssl-devel,openssl-libs软件包?不确定这是否有帮助。在构建自己的版本时,您可能需要考虑使用与 CentOS 7.x 版本一起提供的相同版本的curl。。 -
@GoinOff 首先,devel 没有安装,但 libs 安装了。我有另一台具有相同版本和 curl 设置的 CentOS7 服务器,但支持 https。那个也有同样的 openssl 和 -libs 但没有安装 devel。
-
@GoinOff 是的,安装 openssl-devel 解决了这个问题。如果您想要支票,请发布答案。