Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git over SSH Server in Windows, cannot find shared libraries

I was to setup an SSH Server to Host my Git Repository to my local area network. I followed this tutorial by TimDavis hoping that I would be able to make a secured Git Repository.

I tested my connection using Putty and it was successful. My only problem was I cannot run "git" command in the console. Then I tried cloning my repository, and this was the error that outputed:

/usr/bin/git-upload-pack.exe: error while loading shared libraries: 
libiconv2.dll: cannot open shared object file: 
No such file or directory

Also when I ran "git" command in the Putty Bash that was connected to the SSH Server, this was the error I encountered:

/usr/bin/git.exe: error while loading shared libraries: pthreadGC2.dll: 
cannot open shared object file: No such file or directory

I seems that all my problem was about the missing libraries but I don't know how to solve it. I am using Windows 7 as an Operating System.

Thanks

like image 240
Roy Marco Aruta Avatar asked Mar 04 '10 00:03

Roy Marco Aruta


2 Answers

As explained here: http://christopherpeplin.com/2013/01/cygwin-git-https/ the sasl libraries and the ca-certificates are missing. Install them by running the setup of cygwin, and installing libsasl2 and ca-certificates packages (the first is support for SSL and the second the root certificates that will be used for SSL authentication).

like image 90
Dorin Lazăr Avatar answered Sep 30 '22 08:09

Dorin Lazăr


I got this error too. I tried copying not just git.exe but the corresponding dlls (libiconv, etc...) from the git bin directory to the CopSsh bin directory and it went away.

like image 20
Steve Avatar answered Sep 30 '22 08:09

Steve