Installing Git on Windows

2

2

I've installed several different versions of Git on Windows all with the same failure. I get an error "libssh2.dll is not installed on this computer...".

I looked around the installation files, and, Windows is right, it's not there. I've tried installing the ssh2.dll binaries (the only place I could find them is in a php distribution), putting them in the system directories and everything.

Does anyone know the source of / or a solution to the problem?

dgo

Posted 2013-08-24T16:02:20.593

Reputation: 685

Answers

1

I finally resolved this. I can't say exactly what the source of the problem all along has been - in other words, why it hasn't worked with various git installations, etc. Though I expect the problem was the same; it doesn't make sense that I kept installing different broken Git packages.

At any rate, what solved it is this:

I had downloaded the libssh2.dll binaries from the libssh2.org website, but the file that came with it was libssh2-1.dll, which went undetected by git. It didn't occur to me rename it, but that might've worked.

However, what did work was downloading the Cgminer binaries, which - as I somehow discovered - happen to contain libssh2.dll.

I then copied libssh2.dll into ..\mysisgit\bin, and git has worked perfectly since. God knows why it wasn't there; especially since this is the version of mysisgit that is packaged with cmder (thus I assume it is a recent mysisgit version).

This has driven me stupid. Notice the date of my original post.

dgo

Posted 2013-08-24T16:02:20.593

Reputation: 685

3

That bug was fixed in 2011.

I would recommend, as an installation process, to simply unzip a portable version of msysgit.

PortableGit-1.8.3-preview20130601.7z 

There won't be an issue then.

VonC

Posted 2013-08-24T16:02:20.593

Reputation: 13 292

This is a good answer I guess. People like it. I cannot resolve this problem on two different computers. Maybe I am handicapped. – dgo – 2014-03-13T23:41:24.107