Git Bash运行错误,版本 2.16.2-64-bit

环境:win7 64位

Error: Could not fork child process: Resource temporarily unavailable (-1).

DLL rebasing may be required; see ‘rebaseall / rebase –help’.

 

问题现象 : 在安装Git64位后,运行git bash一直报错,failed to fork child process no such file or directory,dll rebasing may be required

 

解决办法:

1、进入Git安装目录,运行git-cmd.exe;

2、执行命令:cd usr/bin,进入/bin目录;

3、执行命令:cp msys-2.0.dll ../ ,将msys-2.0.dll拷贝到上一级目录;

4、执行命令:rebase -b 0x76000000 ../msys-2.0.dll

5、执行命令:rebase -b 0x30000000 ../msys-2.0.dll

6、执行命令:cp ../msys-2.0.dll . ,将msys-2.0.dll拷回/bin当前目录(. 代表当前目录)

 

重新运行git-bash.exe,问题解决!

 

如果问题依然存在,可以尝试修改注册表:

1、打开运行,输入regedit打开注册表

2、找到目录中[HKEY_CLASSES_ROOT\Directory\Background\shell \ git_shell \ command]的值为C:\Program Files\Git\git-bash.exe

3、将其替换成C:\Program Files\Git\bin\sh.exe

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章