Libcurl.dll error with Git push

∥☆過路亽.° 提交于 2019-11-30 06:43:44

It looks like it's an OpenOffice conflict from their libcurl. From my understanding, Openoffice put an old libcurl.dll in the system directory.

Try to remove libcurl.dll from C:\Windows\sysWOW64 and/or C:\Windows\System32 (Reinstalling Git or uninstalling OpenOffice doesn't seem to fix the problem).

  • Go to the folder where Git is installed (defalut: C:\Program Files\Git).
  • Copy the file "libcurl.dll" in Git installation folder (C:\Program Files\Git\bin\libcurl.dll).
  • Paste it in location where the git.exe exists (C:\Program Files\Git\libexec\git-core).

This should fix the issue, since now it will check for the lib in current executing folder before falling back to systems folder.

As a side note for anyone using pre-built libcurl in their projects: this can be caused because you have libcurl.dll in the root of the folder you are trying to push. Windows will load the library in your project folder before the one with Git first.

The solution is simple -- remove or move libcurl.dll in your project.

guesti

This is the same thing with the windows application installed in your local appdata directory.

To copy the file from :

C:\Users\YOUR-WINDOWS-COUNT\AppData\Local\GitHub\PortableGit_xxxx-A-BIG-NUMBER-XXXXXXXXXXXXX\libexec\git-core\bin\libcurl.dll

to the directory:

C:\Users\YOUR-WINDOWS-COUNT\AppData\Local\GitHub\PortableGit_xxxx-A-BIG-NUMBER-XXXXXXXXXXXXX\libexec\git-core

seems to work.

Follow these steps (this worked for my 64 bit win7):

a) Copy libcurl.dll from C:\Windows\sysWOW64\libcurl.dll 
   to some temporary location.
b) Remove libcurl.dll from C:\Windows\sysWOW64\libcurl.dll
c) Try cloning repository from Git Windows App.

Enjoy! :)

Diego Enrique Abanto Arroyo
  1. Remove libcurl.dll from C:\Windows
  2. After that it worked

I was setting things up for http access. I was getting a similar error (libcurl-4.dll is missing) on the client. The fix turned out to be that some of the housekeeping files deep in the repository tree on the server were owned by 'root' rather than 'apache'. Correcting that corrected the missing curl error on the client.

For me (64 bit Windows7), uninstalling GIT and reinstalling it was the only solution that worked.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!