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

时间:2010-03-04 00:54:27

标签: windows git ssh putty

我是设置SSH服务器来将我的Git存储库托管到我的局域网。我遵循这个tutorial by TimDavis希望我能够建立一个安全的Git存储库。

我使用Putty测试了我的连接并且它成功了。我唯一的问题是我无法在控制台中运行“git”命令。然后我尝试克隆我的存储库,这是错误的结果:

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

当我在连接到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

我似乎所有的问题都是关于缺少的库但我不知道如何解决它。我使用Windows 7作为操作系统。

由于

4 个答案:

答案 0 :(得分:6)

如下所述:http://christopherpeplin.com/2013/01/cygwin-git-https/缺少sasl库和ca证书。通过运行cygwin的设置,安装libsasl2和ca-certificates软件包来安装它们(第一个是支持SSL,第二个是用于SSL认证的根证书)。

答案 1 :(得分:4)

我也遇到了这个错误。我尝试不仅将git.exe复制到git bin目录中的相应dll(libiconv等等)到CopSsh bin目录,它就消失了。

答案 2 :(得分:2)

您好,如果您正在谈论以下文章: http://www.timdavis.com.au/git/setting-up-a-msysgit-server-with-copssh-on-windows/

然后尝试修改路径。只需添加以下行添加到\ home \ .bashrc: export PATH = $ PATH:/ cygdrive / d / programs / Git / bin:/ cygdrive / d / programs / Git / libexec / git-core

其中d / programs / Git是d:\ programs \ Git - 是msysgit安装的路径

答案 3 :(得分:2)

我还发现,由于另一个破坏的依赖关系,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