ssl - 手动安装 curl 找不到 openssl
问题描述
我的 curl 系统(Centos7)安装不支持 https。所以我按照这个从源代码下载的答案并安装了自己,使用该选项。./configure --with-ssl
我在配置时收到以下警告:
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
. 从源代码构建时通常需要开发 (-devel) 包。
推荐阅读
- peoplesoft-app-engine - 在 PeopleCode 中使用 java.io.File 列出目录中的文件
- sorting - 具有 pypeln 映射阶段结果的有序迭代器
- python - 凯撒密码在某个短语的长度上进行缩放是行不通的
- python - ImportError:无法从“scipy.misc”导入名称“imread”
- node.js - Angular nodejs在添加文件时出错
- elasticsearch - 包含多个单词的搜索词在 Elasticsearch 中不起作用
- python - 试图让我的 GUI 程序显示时出错,我已经根据我所学的内容正确编码了整个程序
- javascript - 如何为具有焦点和上下文的区域图实现 d3 的输入更新退出模式?
- typescript - 如何在打字稿上将新值附加到 AWS DynamoDB 中的现有列表
- c# - C# 无法使用 Newtonsoft 修改 Json