无法从windows命令提示符运行curl命令,但可以从cygwin驱动器运行它
从windows命令提示符运行命令时: sh./abc.sh 获取以下错误:无法从windows命令提示符运行curl命令,但可以从cygwin驱动器运行它,windows,curl,cygwin,Windows,Curl,Cygwin,从windows命令提示符运行命令时: sh./abc.sh 获取以下错误: curl: option --compressed: the installed libcurl version doesn't support this curl: try 'curl --help' for more information 我能够从cygwin驱动器运行相同的命令 如何在windows命令提示符下运行相同的命令 其中,curl上的命令给出以下结果: >where curl C:\Windo
curl: option --compressed: the installed libcurl version doesn't support this
curl: try 'curl --help' for more information
我能够从cygwin驱动器运行相同的命令
如何在windows命令提示符下运行相同的命令
其中,curl上的命令给出以下结果:
>where curl
C:\Windows\System32\curl.exe
C:\cygwin64\bin\curl.exe
compressed
是cygwin提供的curl的一个特性
在Cygwin-bin目录之外的CMD中尝试where
D:\cygwin64>where curl
C:\Windows\System32\curl.exe
D:\cygwin64>cd bin
D:\cygwin64\bin>where curl
D:\cygwin64\bin\curl.exe
C:\Windows\System32\curl.exe
并避免在Cygwin安装之前将C:\Windows\System32
放在路径中
如果您想使用Cygwin程序。
压缩的
是Cygwin提供的curl的一个功能。感谢现在我能够在移除路径“%SystemRoot%\System32”后从Cygwin运行它,移除路径“%SystemRoot%\System32”后从环境变量移除路径“%SystemRoot%\System32”
,这看起来非常具有破坏性。我要做的是改变顺序,让cygwin先来,但不要完全删除它。