C 编译器标识未知? mongo-c 驱动程序 - Windows 10

问题描述

我正在尝试在 Windows 10 上安装 MongoDB c 驱动程序。我遵循了 http://mongoc.org/libmongoc/current/installing.html。 但是我在构建 mongoc 时遇到了一个问题。 我在 mysys2 minGW64 上输入了以下命令。

cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF ..

然后我收到以下错误

-- Building for: NMake Makefiles
-- The C compiler identification is unkNown
CMake Error at CMakeLists.txt:54 (project):
  The CMAKE_C_COMPILER:

    cl

  is not a full path and was not found in the PATH.

  To use the NMake generator with Visual C++,cmake must be run from a shell
  that can use the compiler cl from the command line.  This environment is
  unable to invoke the cl compiler.  To fix this problem,run cmake from the
  Visual Studio Command Prompt (vcvarsall.bat).

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler,or to the compiler name if it is in the PATH.


-- Configuring incomplete,errors occurred!
See also "C:/TestDrivers/mongo-c-driver-1.17.4/cmake-build/CMakeFiles/CMakeOutput.log".
See also "C:/TestDrivers/mongo-c-driver-1.17.4/cmake-build/CMakeFiles/CMakeError.log".

我真的需要帮助来解决这个问题

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)