[英]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.