msysgit - sh.exe - fork: Permission denied - Vista 64 bit

做~自己de王妃 提交于 2019-11-30 19:41:14

问题


I installed msysgit on other Windows machines with no problems. On this Vista 64 bit Ultimate box, I installed the 3 most recent versions of msysgit. On all three installs, when I do a "git bash here", I get exactly this on the command window:

sh.exe": fork: Permission denied
sh.exe"-3.1$

The git command doesn't work. I get the same permission denied message. Any clues as to how to fix this?

Update

Also, when I do "git gui here" - I get:

Cannot determine Git version.

couldn't execute "C\...\git-core\git.exe

Git Gui requires Git 1.5.0 or later

I'm using a version newer than 1.5.0.


回答1:


The usual way I install msysgit is:

  • not in C:\Program Files or C:\Program Files(x86)
    (That avoid any issue with the UAC mechanism: I had the same "permission denied" problem with eclipse, and this kind of program shouldn't be installed in Program Files anyway.)
  • with the option "Run Git from the Windows Command Prompt": minimal impact on the PATH, and avoid side-effect with an eventual Cygwin already installed.

It never failed to work this way.



来源:https://stackoverflow.com/questions/2439336/msysgit-sh-exe-fork-permission-denied-vista-64-bit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!