如何在Mac OS X上启用curl SSL? [英] How do I enable curl SSL on Mac OS X?

查看:1156
本文介绍了如何在Mac OS X上启用curl SSL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac OS X 10.11.2上使用Terminal,我无法处理任何https请求。我总是得到这个错误:

  curl:(1)协议https不支持或禁用libcurl 

我试过,但我得到一个错误的目录错误:

  ./ configure --with-ssl = / usr / local / ssl 

任何建议都会有帮助。



编辑



这是在尝试使用ssl安装时得到的错误:

  configure:错误:未找到OpenSSL libs和/在指定! 

解决方案



对于Mac OS X 10.6或更高版本,请使用此选项启用SSL:

  ./ configure --with-darwinssl 

解决方案



对于Mac OS X 10.6或更高版本,请使用此选项启用SSL:

  ./ configure --with-darwinssl 


I'm using Terminal on Mac OS X 10.11.2 and I can't process any https requests. I always get this error:

curl: (1) Protocol "https" not supported or disabled in libcurl

I tried this but I get a "wrong directory" error:

./configure --with-ssl=/usr/local/ssl

Any advice would be helpful.

EDIT:

This is the error I get when trying to install with ssl:

configure: error: OpenSSL libs and/or directories were not found where specified!

SOLUTION:

For Mac OS X 10.6 or later use this to enable SSL:

./configure --with-darwinssl

解决方案

SOLUTION:

For Mac OS X 10.6 or later use this to enable SSL:

./configure --with-darwinssl

这篇关于如何在Mac OS X上启用curl SSL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆