微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决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 举报,一经查实,本站将立刻删除。