Git for Windows - 由于libiconv2.dll丢失,程序无法启动 [英] Git for Windows - The Program can't start because libiconv2.dll is missing

查看:119
本文介绍了Git for Windows - 由于libiconv2.dll丢失,程序无法启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试从Windows 7(64位)上的git Bash中运行某些命令(例如git push)时,出现错误:

 程序无法启动,因为您的计算机中缺少libiconv2.dll 

我已经详尽搜索了解决方案。

我能找到的最多的是Google代码网站上的问题主题( Issue 419 )以及其他一些博客。据我所知,这些帖子中提供的建议实际上不会解决我的问题。



我试过重新安装。我已经尝试在 PATH 中添加 $ GIT / bin

我可以验证dll位于 $ GIT / bin 目录中......但仍然无法推送到远程。



我有在另一个Windows 7盒子上安装msysgit,我在这两种情况下安装了相同的方式......所以不用说我很困惑。



这是最受赞赏的。



谢谢,

解决方案

解决了这个问题......这里有几件事需要注意。



1)问题是我的本地.git / config文件中的配置文件中存在拼写错误。 ..所以我是一个白痴。



2)Git Bash在这种情况下不会失败,然后将这个非常误导性的错误作为警报而不是报告没有在.git / config文件中指定的名称的配置来源。



我能够解决这个问题的唯一方法是添加$ GitPath / C md目录
到我的路径并从命令行运行git。在那里,我能够得到一个详细的错误消息,指出远程存储库尚不存在。然后,我拉起了可靠的vi编辑器,发现其实有一个错字。



这里的教训。如果你使用msysgit得到一个奇怪的.dll错误,那很可能是错误配置的结果......而不是一些系统异常或安装问题。



谢谢给所有试图帮助的人!

When I attempt to run certain commands (like git push, for example) from a git Bash on Windows 7 (64bit) I get the error:

The program can't start because libiconv2.dll is missing from your computer

I have searched exhaustively for a solution to this.
The most I can find is an issue thread at the google code site (Issue 419) and a few other blogs here and there. As far as I can tell none of the suggestions offered in the posts will actually solve my issue.

I have tried re-installing. I have tried adding $GIT/bin to the PATH.
I can verify that the dll is in the $GIT/bin directory...but still I cannot push to remote.

I have a working install of msysgit on another Windows 7 box, and I installed the same way in both situations... so needless to say I am quite confused.

Any help on this would be most appreciated.

Thanks,

解决方案

I have resolved this...there are a couple of things to note here.

1) The problem was a typo in my configured origin in my local .git/config file...So I'm an idiot.

2) Git Bash does not fail gracefully in this situation, and then throws this very misleading error as an alert, rather than reporting that there is no configured origin of the name specified in the .git/config file.

The only way I was able to figure this out was by adding the $GitPath/cmd directory to my path and running git from the command line. There, I was able to get a verbose error message indicating that the remote repository did not yet exists. Then I pulled up the trusty vi editor and saw there was in fact a typo.

The lesson here. If you are getting a weird .dll error with msysgit, it could very likely be the result of a misconfiguration...rather than some system anomaly or install issue.

Thanks to everyone who tried to help with this!

这篇关于Git for Windows - 由于libiconv2.dll丢失,程序无法启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆