简体   繁体   English

Windows命令提示符为什么可以运行此文件?

[英]Why can Windows command prompt run this file?

I have a ./configure file that I'm supposed to run by putting it in the command prompt. 我有一个./configure文件,应该将其放在命令提示符下运行。 It works when I run it in the git prompt but when I run it in the Windows command prompt it gives me: 当我在git提示符下运行它时它起作用,但是当我在Windows命令提示符下运行它时,它给了我:

C:\cygwin\home\doxygen\configure> configure
'configure' is not recognized as an internal or external command,
operable program or batch file.

Even though I'm in the correct directory (and running dir shows me that the file is there) it still stays that it cannot find the file. 即使我在正确的目录中(并且运行dir向我显示该文件已在其中),它仍然停留在找不到文件的位置。 This is the same for all files that don't have an extension on them. 对于所有没有扩展名的文件,这都是相同的。 Why does this happen and how can I get this to work? 为什么会发生这种情况,如何使它正常工作?

./configure is not a program. ./configure不是程序。 It's more of a shell script usually. 通常,它更多是一个shell脚本。 My analogy may not be good but consider it to be the equivalent of windows batch files (in this case you can say it's a .sh without the extension). 我的类比可能不是很好,但可以认为它等同于Windows批处理文件(在这种情况下,您可以说它是没有扩展名的.sh)。 It will only run from a cygwin/unix shell. 它只能从cygwin / unix shell运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM