English 中文(简体)
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

最佳回答

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.

问题回答

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).

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:programsGit -- is a path to msysgit installation

I also found that git submodule update would fail on Cygwin due to another broken dependency, where you need to install the gettext package as well.

http://cygwin.1069669.n5.nabble.com/Re-shared-object-file-not-found-with-git-submodule-update-init-recursive-in-Cygwin-64-bit-td104123.html





相关问题
Why running a service as Local System is bad on windows?

I am trying to find out the difference between difference service account types. I tumbled upon this question. The answer was because it has powerful access to local resources, and Network Service ...

Programmatically detect Windows cluster configuration?

Does anyone know how to programatically detect that a Windows server is part of a cluster? Further, is it possible to detect that the server is the active or passive node? [Edit] And detect it from ...

get file icon for Outlook appointment (.msg)

I ve read Get File Icon used by Shell and the other similar posts - and already use SHFileInfo to get the associated icon for any given extension, and that works great. However, Outlook uses ".msg" ...

Identifying idle state on a windows machine

I know about the GetLastInputInfo method but that would only give me the duration since last user input - keyboard or mouse. If a user input was last received 10 minutes ago, that wouldn t mean the ...

Terminating a thread gracefully not using TerminateThread()

My application creates a thread and that runs in the background all the time. I can only terminate the thread manually, not from within the thread callback function. At the moment I am using ...

热门标签