windows - gcc 可被 cmd 识别,但不能被 bash 识别

标签 windows bash ubuntu

我使用的是linux的windows子系统,安装了ubuntu,bash运行流畅。
我正在尝试使用make,似乎bash 无法识别gcc。尝试将其添加到 PATH,但没有任何改变。奇怪的是 - cmd 认识gcc。
我需要重新安装吗?

最佳答案

您是否尝试将 gcc 安装到适用于 Windows 的 Ubuntu Sybsystem?

sudo apt install gcc

关于windows - gcc 可被 cmd 识别,但不能被 bash 识别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70161018/

相关文章:

bash -/bin/sh : Syntax error: Unterminated quoted string

c++ - 使 : *** No targets specified and no makefile found. 停止。 [Ubuntu]

python - 无法在 Win7 上将 python.exe 设置为 *.py 脚本

windows - 为什么 Flash 无法在 Windows 服务中呈现?

mysql - Bash:mysqlimport 命令在没有提示的情况下写入数据库

bash - 删除 bash 中的反向匹配

mysql - 使用预定义的 root 密码安装脚本 LAMP

c# - 如何将 WinForms 应用程序最小化到通知区域?

python - 在 Windows 中设置项目的相对 pythonpath (Visual Studio Code)

linux - 从 bash 脚本中的数字显示月份