curl:(1)在libcurl中不支持或禁用协议https [英] curl : (1) Protocol https not supported or disabled in libcurl
问题描述
在Ubuntu 11.04上安装Rails环境时,我真的很疯狂。我启动命令 rvm install 1.9.2 --with-openssl-dir = / usr / local
,我总是得到以下错误:
I'm driving crazy on installing the Rails environments on Ubuntu 11.04. I launch the command rvm install 1.9.2 --with-openssl-dir=/usr/local
and I always getting the following error:
curl : (1) Protocol https not supported or disabled in libcurl
我全天没有得到任何东西。是否有人遇到同样的问题?
I googled all day without getting anything. Does anyone meet the same problem?
推荐答案
得到答案,其中有以下内容:il / 2013/08 / curl-1-protocol-not-supported-or.htmlrel =noreferrer> HERE :
curl -XPUT 'http://localhost:9200/api/twittervnext/tweet'
首先尝试并已经出现错误:
Woops, first try and already an error:
curl: (1) Protocol 'http not supported or disabled in libcurl
此错误的原因是愚蠢的, 当您对命令使用单引号时,Windows不喜欢。所以正确的命令是:
The reason for this error is kind of stupid, Windows doesn’t like it when you are using single quotes for commands. So the correct command is:
curl –XPUT "http://localhost:9200/api/twittervnext/tweet"
这篇关于curl:(1)在libcurl中不支持或禁用协议https的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!