Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Protocol https not supported or disabled in libcurl using Git

Tags:

github

curl

https

I have a few github repos and they have been working fine for the last few months.
However, a few days ago I started getting a strange error when trying to push
and pull:

error: Protocol https not supported or disabled in libcurl while
accessing https: ... fatal: HTTP request failed

I have not changed anything that I am aware of, so not sure
where the error is coming from. Thanks in advance.

like image 267
Aaron6585 Avatar asked Mar 21 '13 16:03

Aaron6585


3 Answers

This error appears if you install Pure Data, may be it's your case.Here is described conflict between Pure Data and git. Pure Data installer put it's own libcurl-4.dll in system32 folder.

Even if you didn't install Pure Data there is probably another libcurl-4.dll somwhere in your library path which is loaded before libcurl-4.dll from installed git location.

like image 124
Timur Bobrus Avatar answered Nov 03 '22 00:11

Timur Bobrus


The first answer is correct though in my case it was not PureData and I even couldn't found what program was conflicting. So I searched the libcurl.dll in C drive and cut it from SysWOW64 folder and pasted on desktop. Looked into its details and it was by some "shenzhen moyea software" which on google led me to youtube converted once installed by my lil bro. Anyways removing the file made the git working again.

like image 23
user2976690 Avatar answered Nov 02 '22 23:11

user2976690


Maybe you have different libcurl.dll versions installed and one of them is overwriting the github one(that does support https).

I don't know what's your OS, but in windows you have to change the PATH settings, so it will point to the right libcurl.dll (do a libcurl search on c:\ to know where is the github one).

In my case it was the Pure Data install that messed up with libcurl.dll from github.

Hope it helps.

like image 1
Narayon Avatar answered Nov 03 '22 00:11

Narayon