"-bash:gcc:未找到命令"编译C时使用cygwin? [英] "-bash: gcc: command not found" using cygwin when compiling c?

查看:68
本文介绍了"-bash:gcc:未找到命令"编译C时使用cygwin?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于某种原因,我刚刚安装了最新版本的Cygwin ans,当我尝试编译代码时,它总是向我闪烁此错误:

I just installed the latest version of Cygwin ans for some reason when I try to compile code, it always flashes me this error:

-bash:gcc:命令不

-bash: gcc: command not

我似乎也没有人们所指的gcc.exe,并且当我尝试安装其他论坛答案所建议的诸如mingw之类的东西时,总是会出现此错误,提示ti无法安装存储库.txt ....在这件事上寻求帮助!

I also don't seem to have the gcc.exe that people are referring to and when I try installing stuff like mingw as suggested by other forum answers, it always gives me this error that ti couldn't install the repository.txt.... Looking for help on this matter!

推荐答案

您可以通过再次运行setup-x86.exe或setup-x86_64.exe来安装gcc.gcc软件包在Devel类别中:

You can install gcc by running setup-x86.exe or setup-x86_64.exe again. The gcc package is in the Devel category:

这篇关于"-bash:gcc:未找到命令"编译C时使用cygwin?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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