首页 > 解决方案 > Bash:make:即使在安装 msys-make 软件包后也找不到命令

问题描述

标题中的错误是我尝试使用时出现在 Windows 10 上的 Bash 上的make错误mingw-get install msys-make

我收到错误消息,它已安装在我的电脑上。现在我不知道该怎么做,即使安装了软件包,bash: make: command not found它仍然存在。另一方面,我确实添加了几乎所有可能的路径到 PATH,有时错误更改为

/mingw64/make-4.3/tests/scripts/variables/make: line 3: =: command not found
/mingw64/make-4.3/tests/scripts/variables/make: line 5: =: command not found
/mingw64/make-4.3/tests/scripts/variables/make: line 7: syntax error near unexpected token `q!'
/mingw64/make-4.3/tests/scripts/variables/make: line 7: `run_make_test(q!'

标签: bashgit

解决方案


您应该将其路径添加到 $PATH 变量并重新启动 Windows。重新启动后操作系统更新病毒。


推荐阅读