繁体   English   中英

netbeans8.2 + msys2_64 + mingw64 + cygwin64 + C 项目构建错误

[英]netbeans8.2 + msys2_64 + mingw64 + cygwin64 + C project build errors

在配备 Xeon E2224G 处理器的全新 HP 塔式 G4 工作站上,Windows 10 pro for wokstations OS build 19042.746。

安装 netbeans 8.2

安装 msys2_64 和 mingw64

设置路径 e:\msys64\usr\bin; e:\msys64\mingw64\bin; %小路%

验证 make,sh,bash,rm 等是否在 e:\msys64\usr\bin 为 C 项目配置 netbeans 并尝试构建并清除此错误:

'No shell found. Cannot proceed. Please install either CYGWIN or Msys.'

好的,然后安装cygwin。 现在得到这个错误:

'1 [main] rm (7980) E:\cygwin64\bin\rm.exe: *** fatal error - cygheap base mismatch detected - 0x180345408/0x180347408.'
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.
cygcheck -c gives
base-cygwin          3.8-1              OK
base-files           4.3-2              OK
cygwin               3.1.7-1            OK

我已经搜索了,只有一个 cygwin1.dll

frank@FRANK_NEW ~
$ which cygwin1.dll
/usr/bin/cygwin1.dll

我已经重新启动了几次机器,但无济于事。

我一直在使用 netbeans 和 mingw 然后是 msys/mingw 大约 10 年,并且在其他台式机和笔记本电脑上使用该组合,但没有遇到这个问题。

谢谢楼上的回复。 这里的问题是 PATH 由 Windows 10 Pro 和 Windows 10 Pro for Workstations 处理的不同方式。

对于 Win10 Pro 定义一个用户变量 'MSYS_HOME' 给它一个值 'E:\msys64\usr\bin' 现在把它放在系统路径中,即一些系统路径;%MSYS_HOME%;更多系统路径 Netbeans 将找到工具 rm , sh, make 等并完成项目的清理和构建。

对于 Win10 Pro for Worksations,上述方法不起作用。 Netbeans 不会构建项目并给出错误“未找到 shell。 无法继续。 请安装 CYGWIN 或 Msys。 路径必须直接在系统路径中设置,即一些系统路径;E:\msys64\usr\bin;更多系统路径这使得 Netbeans 可以正常工作以执行清理和构建。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM