我正在尝试在我的 windows 桌面上安装一个名为 NUPACK 的软件套件,用于设计核酸反应途径。http://www.nupack.org/
这个软件需要安装CMake,据我了解,CMake本身没有编译器,需要我们单独安装编译器。因此,我下载了 MinGW 以用作 C++ 编译器。在运行之前,我已经设置了 CMake 和 MinGW 的 bin 的环境变量。我正在通过命令提示符运行 CMake(版本 3.11.1),但我一直遇到以下问题:
C:\Users\Nicholas\Documents\nupack\build>Cmake -DCMAKE_INSTALL_PREFIX=NUPACKINSTALL -G "MinGW Makefiles" ..
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: C:/MinGW/bin/gcc.exe
-- Check for working C compiler: C:/MinGW/bin/gcc.exe -- broken
CMake Error at C:/Program Files/CMake/share/cmake-
3.11/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
"C:/MinGW/bin/gcc.exe"
is not able to compile a simple test program.
Run Code Online (Sandbox Code Playgroud)
我猜 CMake 无法以某种方式识别我的 MinGW gcc …