简体   繁体   English

在Windows中使用SSH服务器,无法找到共享库

[英]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. 我是设置SSH服务器来将我的Git存储库托管到我的局域网。 I followed this tutorial by TimDavis hoping that I would be able to make a secured Git Repository. 我遵循TimDavis的这个教程,希望我能够建立一个安全的Git存储库。

I tested my connection using Putty and it was successful. 我用Putty测试了我的连接并且它成功了。 My only problem was I cannot run "git" command in the console. 我唯一的问题是我无法在控制台中运行“git”命令。 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: 此外,当我在连接到SSH服务器的Putty Bash中运行“git”命令时,这是我遇到的错误:

/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. 我使用Windows 7作为操作系统。

Thanks 谢谢

As explained here: http://christopherpeplin.com/2013/01/cygwin-git-https/ the sasl libraries and the ca-certificates are missing. 如下所述: http ://christopherpeplin.com/2013/01/cygwin-git-https/缺少sasl库和ca证书。 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). 通过运行cygwin的设置,安装libsasl2和ca-certificates包来安装它们(第一个是支持SSL,第二个是用于SSL身份验证的根证书)。

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. 我尝试不仅将git.exe复制到git bin目录中的相应dll(libiconv等等)到CopSsh bin目录,它就消失了。

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. 我还发现,由于另一个破坏的依赖性,git子模块更新将在Cygwin上失败,您还需要安装gettext包。

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

Hi if you are talking about the following article: http://www.timdavis.com.au/git/setting-up-a-msysgit-server-with-copssh-on-windows/ 大家好,如果您正在谈论以下文章: 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 只需添加以下行添加到\\ home \\ .bashrc:export PATH = $ PATH:/ cygdrive / d / programs / Git / bin:/ cygdrive / d / programs / Git / libexec / git-core

Where d/programs/Git is ad:\\programs\\Git -- is a path to msysgit installation 其中d / programs / Git是ad:\\ programs \\ Git - 是msysgit安装的路径

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM