环境: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