我已经从以下位置下载了 cURL zip 文件here https://curl.haxx.se/download.html,但它似乎包含源代码,而不是可执行文件。
Do I need编译cURL来运行它?如果是,那么我该怎么做?
我在哪里可以找到.exe下载 cURL ?
我查找了有关安装 cURL 的文档,但几乎找不到。
你可能已经有了curl
您可能不需要下载任何东西:
如果您使用的是 Windows 10 版本 1803 或更高版本,您的操作系统附带了一份curl的副本 https://devblogs.microsoft.com/commandline/tar-and-curl-come-to-windows/,已经设置并可以使用。
如果你有适用于 Windows 的 Git https://gitforwindows.org/已安装(如果您从git-scm.com https://git-scm.com/,答案是肯定的),你有curl.exe under:
C:\Program Files\Git\mingw64\bin\
只需将上面的路径添加到PATH.
使用包管理器安装curl
如果您已经在使用包管理器,那么使用包管理器进行安装可能会更方便:
For 巧克力味 https://chocolatey.org/, run choco install curl
For MSYS2 https://www.msys2.org/, run pacman -S curl
For Scoop https://scoop.sh/, run scoop install curl
For Cygwin https://www.cygwin.com/, 在Cygwin安装程序中添加curl包 https://www.oracle.com/webfolder/technetwork/tutorials/obe/cloud/objectstorage/installing_cURL/installing_cURL_on_Cygwin_on_Windows.html#section1。读者编辑:Cygwin安装程序设计已更改,请选择curl包如下: