Github / Cygwin错误:检测到cygheap碱基不匹配 [英] Github/Cygwin error: cygheap base mismatch detected
问题描述
Git一直给我这个错误
Git has been giving me this error
0 [main] sh (47116) C:\Users\Marcus\AppData\Local\GitHub\PortableGit_c7e0cbde92ba565cb218a521411d0e854079a28c\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0x11C7400/0x1297400.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
0 [main] sh 42052 fork: child -1 - forked process 47116 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
/mingw32/libexec/git-core/git-sh-setup: fork: retry: No child processes
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
0 [main] sh 42052 fork: child -1 - forked process 47116 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
/mingw32/libexec/git-core/git-sh-setup: fork: retry: No child processes
我试过的东西包括:
- 从
C:\cygwin
和删除cygwin C:\cygwin64
并重新安装
- 使用卸载程序和安装程序重新安装github。
- 卸载github并手动删除其本地和漫游appdata文件夹,重新安装。
- 重新启动计算机
- 重新键入
C:\cygwin
但没有解决任何问题。 - rebasing
%appdata%\Local\Github\PortableGit_c7e ... \。
- deleting cygwin from
C:\cygwin
andC:\cygwin64
and reinstalling - reinstalling github using the uninstaller and installer.
- uninstalling github and manually removing its local and roaming appdata folders, and reinstalling.
- rebooting the computer
- rebasing
C:\cygwin
, it succeeded, but didnt fix any issues. - rebasing
%appdata%\Local\Github\PortableGit_c7e...\.
it returned the original error again.
作为参考,我运行的是windows 10 64位。唯一的另一个问题,我可以发现,针指出错误,我从来没有达到解决方案:在此链接
for reference, I'm running windows 10 64 bit. The only other question I could find that pin pointed the error I'm getting never reached a solution: link here
我不知道除了只是重新安装窗口之外的其他地方,任何帮助将非常感激。 >
I'm not sure where else to go aside from just reinstalling windows altogether, any help would be greatly appreciated.
推荐答案
来自 git-for-windows的shell (基于msys2的 )不是要在Cygwin中运行或安装不同的msys2。
The shell from git-for-windows (based on msys2) is not meant to be run in Cygwin or a different install of msys2.
GitHub Desktop 使用old git-for-windows(2.5.3,2015年9月)
对于git bash会话,您不需要Cygwin或GitHub Desktop。
For a git bash session, you do not need Cygwin or GitHub Desktop.
解压缩最新的git-for-windows azrchive你可以找到:
- a href =https://github.com/git-for-windows/git/releases/download/v2.7.0.windows.1/PortableGit-2.7.0-64-bit.7z.exe>
PortableGit-2.7.0-64-bit.7z.exe
=>c:\prgs\git\PortableGit-2.7.0 -64位
PortableGit-2.7.0-64-bit.7z.exe
=>c:\prgs\git\PortableGit-2.7.0-64-bit
然后:
cd c:\prgs\git
mklink /J latest PortableGit-2.7.0-64-bit
set GIT_ROOT=c:\prgs\git\latest
set PATH=%PATH%;%GIT_ROOT%;%GIT_ROOT%\bin;%GIT_ROOT%\cmd;%GIT_ROOT%\us`\bin
然后您可以键入 git-bash
启动linux-基于bash的会话。
You will then be able to type git-bash
to launch a linux-based bash session.
或者,从常规的 CMD
shell会话,你将有权访问200多个unix命令( curl
, cat
, xargs
, ls
,...)。
不需要Cygwin。
Or, from a regular CMD
shell session, you will have access to 200+ unix commands (curl
, cat
, xargs
, ls
, ...).
No need for Cygwin.
这篇关于Github / Cygwin错误:检测到cygheap碱基不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!