Monday, October 26, 2009

TortoiseGit cannot find libcurl-4.dll

After recent switch to Windows 7 x64 TortoiseGit stopped working for me. Symptoms are non-descriptive – when you try to “Create a new repository here” it just shows error box with no text.

I had two suspects: some obscure configuration settings of TortoiseGit itself or msysgit, or missing library. So after quick upgrade to latest 1.1.1.0-64bit version it was time to run ProcessMonitor.

ProcessMonitor immediately showed that after some activity git starts looking for libcurl-4.dll in all possible locations starting with C:\msysgit\bin where I have msysgit installed, and fails. It appears that this library is in another folder: C:\msysgit\mingw\bin. I did not try to understand why, just added both folders to system path and voila! It worked. Setting dialog shows git version again, repositories get created.

Hope this helps someone.

If you have a more involved problem, there are some solutions  proposed at http://ys.lancop.nl/site/?p=62, and of course by all means read official instructions once again: http://code.google.com/p/tortoisegit/.

0 comments:

Post a Comment