views:

707

answers:

2

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

A: 

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.

Steve
That works but I copied not only the contents of the bin folder but also the git-core contents. I copied all of them to the Bin folder of SSL/ICW.Thanks.
Roy Marco Aruta
Oh yeah, forgot about that - you need the git upload and other exes. One more thing. I didn't like copying the files, so what I did was I undid the copy and added the bin directories to the git path. So far, so good. I describe how I did it in my post here: http://stackoverflow.com/questions/1482824/setup-git-server-with-msysgit-on-windows/2440745#2440745
Steve
A: 

Hi if you are talking about the following article: http://www.timdavis.com.au/git/setting-up-a-msysgit-server-with-copssh-on-windows/

Then try to modify the path. Just add add the following lines into \home\.bashrc : export PATH=$PATH:/cygdrive/d/programs/Git/bin:/cygdrive/d/programs/Git/libexec/git-core

Where d/programs/Git is a d:\programs\Git -- is a path to msysgit installation

Andrei