CLion安装:找不到Cmake编译器,找不到GDB [英] CLion Installation: Cmake compilers not found, GDB not found

查看:1575
本文介绍了CLion安装:找不到Cmake编译器,找不到GDB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从VS切换到CLion,他们说我需要安装Cygwin和CMake。然后,我都安装了它们。我尝试使用捆绑软件,但CLion仍然给我这些错误 make:未找到 C编译器:未找到 C ++编译器:找不到 GDB:找不到

I'm switching from VS to CLion and they said I needed to install Cygwin and CMake. I then installed both of them. I tried use bundled, but CLion still gives me these errors make: not found C Compiler: not found C++ Compiler: not found GDB: not found.

我有在路径 C:\Users\Gaga\Downloads\cmake-3.4.1 下安装了CMake,但没有看到cmake.exe,这是最近的东西是cmake.cxx。

I have installed CMake under the path C:\Users\Gaga\Downloads\cmake-3.4.1 but I don't see a cmake.exe, the closest thing is cmake.cxx.

没有这些,我将无法编译任何东西,请帮忙

Without these I'm not able to compile anything, please help

推荐答案

解决方法是使用MinGW。如果您从网站上下载它,则应附带cmake,并注意错误。

The workaround would be to use MinGW. If you download it from the website it should come with cmake, and take care of the errors.

http://mingw.org/

解压缩并转到安装程序时,应检查gcc之类的东西,然后从左上角检查安装软件包之类的东西。

When extract it and go to the installer you should check something like gcc and then from the top left corner something like 'install packages'

请确保不要意外下载源,我这样做了,这会导致您遇到此错误: CLion:CMake错误源目录不存在

Be sure not to accidentally download the source, which I did, which would lead you toward this error: CLion: CMake Errors Source directory does not exist

编辑:所以一年后,我了解到除了互联网所说的以外,有关Cygwin和mingw的更多信息。 CLion需要一个类Unix环境。如果您在MacOS或Linux上使用CLion,则它已经基于Unix。符合 POSIX的所有内容都可以使用。 CygWin是Windows的终端仿真器,可在其中运行 mkdir 之类的Unix命令。 MinGW是类似的东西,但不是posix。随附GCC。我还是菜鸟。

So over a year later, I've learned a little more about Cygwin and mingw beyond what the internet says. CLion needs a "Unix-like" environment. If you use CLion on MacOS or a Linux it's already Unix based. Anything that is "POSIX" compliant will work. CygWin is a terminal emulator for windows where Unix commands like mkdir work. MinGW is something similar but not posix. Comes with GCC tho. I'm still a noob.

这篇关于CLion安装:找不到Cmake编译器,找不到GDB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆