在 Windows 中通过 SSH 服务器进行 Git,找不到共享库
我要设置一个 SSH 服务器来将我的 Git 存储库托管到我的局域网。我遵循了 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 作为操作系统。
谢谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
正如这里所解释的: http://christopherpeplin.com/2013/01/cygwin-git- https/ sasl 库和 ca 证书丢失。通过运行 cygwin 安装程序并安装 libsasl2 和 ca-certificates 软件包(第一个是对 SSL 的支持,第二个是将用于 SSL 身份验证的根证书)来安装它们。
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).
我也遇到这个错误。我尝试不仅将 git.exe 复制,还尝试将相应的 dll(libiconv 等)从 git bin 目录复制到 CopSsh bin 目录,然后它就消失了。
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.
您好,如果您正在谈论以下文章:
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 是 ad:\programs\Git -- 是路径msysgit安装
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
我还发现 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
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