Why there is no mkdir in MSYS?

青春壹個敷衍的年華 提交于 2021-01-28 23:30:58

问题


Hello I've installed MinGW with Msys and there is no mkdir in bin folder of Msys.

Why?

How can I use Netbeans to compile C++ code?

I get such error mkdir -p build/Debug/MinGW-Windows make.exe[2]: mkdir: Command not found when trying to compile in Netbeans 8.1


回答1:


Several commands are missing when installing MinGW and Msys.

E.g. when running the "/postinstall/pi.sh" as recommended in the "Getting started" guide, the following commands were missing:
- mkdir
- cp
- rm

I fixed it by downloading: https://sourceforge.net/projects/unxutils/?source=typ_redirect and then copying the missing commands to C:\MinGW\msys\1.0\bin

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.

I also copied useful commands like:
- ls
- rmdir



来源:https://stackoverflow.com/questions/37906316/why-there-is-no-mkdir-in-msys

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!