问题描述
您好,我已经用 Msys 安装了 MinGW,但 Msys 的 bin 文件夹中没有 mkdir.
Hello I've installed MinGW with Msys and there is no mkdir in bin folder of Msys.
为什么?
如何使用 Netbeans 编译 C++ 代码?
How can I use Netbeans to compile C++ code?
我收到这样的错误mkdir -p 构建/调试/MinGW-Windowsmake.exe[2]: mkdir: 命令未找到尝试在 Netbeans 8.1 中编译时
I get such errormkdir -p build/Debug/MinGW-Windowsmake.exe[2]: mkdir: Command not foundwhen trying to compile in Netbeans 8.1
推荐答案
安装 MinGW 和 Msys 时缺少几个命令.
Several commands are missing when installing MinGW and Msys.
例如按照入门"指南中的建议运行/postinstall/pi.sh"时,缺少以下命令:
- mkdir
- cp
- rm
E.g. when running the "/postinstall/pi.sh" as recommended in the "Getting started" guide, the following commands were missing:
- mkdir
- cp
- rm
我通过下载修复了它:https://sourceforge.net/projects/unxutils/?source=typ_redirect然后将丢失的命令复制到 C:\MinGW\msys\1.0\bin
I fixed it by downloading:https://sourceforge.net/projects/unxutils/?source=typ_redirectand then copying the missing commands to C:\MinGW\msys\1.0\bin
当然,我最初进行了搜索以查看命令是否应该隐藏在 MinGW/Msys 文件树中的其他任何位置,但它们没有.
Of course I did a search initially to see if the commands should hide anywhere else in the MinGW/Msys filetrees, and they didn't.
我还复制了有用的命令,例如:
- ls
- rmdir
I also copied useful commands like:
- ls
- rmdir
这篇关于为什么 MSYS 中没有 mkdir?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!