我的系统(Centos7)安装的curl不支持https。因此,我使用./configure --with-ssl
选项跟踪了从answer和source下载的installed myself。
我在配置时收到以下警告:
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?
答案 0 :(得分:2)
尝试安装openssl-devel
。从源代码构建时,通常需要开发(-devel)软件包。