【问题标题】:"The C compiler "/usr/bin/cc" is not able to compile a simple test program."“C 编译器“/usr/bin/cc”无法编译简单的测试程序。”
【发布时间】:2017-05-21 14:59:09
【问题描述】:

我安装了 Cygwin64 并且在 Toolchains 1 中一切正常,甚至 C 编译器也被勾选了。但是每当我创建一个新项目时,我都会遇到这些错误,并且“运行”和“调试”按钮从一开始就是灰色的;

Error:The C compiler "/usr/bin/cc" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /cygdrive/c/Users/J/.CLion2016.2/system/cmake/generated/untitled132-5df26809/5df26809/__default__/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make.exe" "cmTC_7ca0a/fast"
C:/cygwin64/bin/make.exe: error while loading shared libraries: cygguile-17.dll: cannot open shared object file: No such file or directory
CMake will not be able to correctly generate this project.

Error:Configuration Debug
The C compiler "/usr/bin/cc" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /cygdrive/c/Users/J/.CLion2016.2/system/cmake/generated/untitled132-5df26809/5df26809/Debug/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make.exe" "cmTC_7db24/fast"
C:/cygwin64/bin/make.exe: error while loading shared libraries: cygguile-17.dll: cannot open shared object file: No such file or directory
CMake will not be able to correctly generate this project.

Error:Configuration Release
The C compiler "/usr/bin/cc" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /cygdrive/c/Users/J/.CLion2016.2/system/cmake/generated/untitled132-5df26809/5df26809/Release/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make.exe" "cmTC_fe477/fast"
C:/cygwin64/bin/make.exe: error while loading shared libraries: cygguile-17.dll: cannot open shared object file: No such file or directory
CMake will not be able to correctly generate this project.

Error:Configuration RelWithDebInfo
The C compiler "/usr/bin/cc" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /cygdrive/c/Users/J/.CLion2016.2/system/cmake/generated/untitled132-5df26809/5df26809/RelWithDebInfo/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make.exe" "cmTC_c2ddb/fast"
C:/cygwin64/bin/make.exe: error while loading shared libraries: cygguile-17.dll: cannot open shared object file: No such file or directory
CMake will not be able to correctly generate this project.

Error:Configuration MinSizeRel
The C compiler "/usr/bin/cc" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /cygdrive/c/Users/J/.CLion2016.2/system/cmake/generated/untitled132-5df26809/5df26809/MinSizeRel/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make.exe" "cmTC_827b4/fast"
C:/cygwin64/bin/make.exe: error while loading shared libraries: cygguile-17.dll: cannot open shared object file: No such file or directory
CMake will not be able to correctly generate this project.

【问题讨论】:

  • 我认为cygguile-17.dll 不在您的 Windows 路径环境变量中。
  • 在哪里可以买到?
  • 它可能是:C:/cygwin64/bin 在资源管理器中查看。然后确保你的 Windows 环境变量 PATH 中有它。
  • 我没有。它可以从 cygwin 下载吗?
  • 我的整个系统中都没有。那么在哪里获得呢?

标签: c eclipse cygwin clion


【解决方案1】:

cygguile-17.dll 属于 libguile17 包。重新安装它。

使用https://cygwin.com/packages/ 进行此类搜索

【讨论】:

    猜你喜欢
    • 2014-11-16
    • 1970-01-01
    • 2015-07-05
    • 2021-01-23
    • 1970-01-01
    • 1970-01-01
    • 2019-09-20
    • 2019-05-07
    • 2020-11-13
    相关资源
    最近更新 更多