Curl 未被识别为内部或外部命令、可运行的程序或批处理文件 [英] Curl not recognized as an internal or external command, operable program or batch file
问题描述
我已经安装了 curl
并在我的系统中将其设置为 环境变量
.但是当运行 curl
命令时,它给出一个错误 'curl' 不是内部或外部命令,也不是可运行的程序或批处理文件.
我尝试重新启动我的系统,但是没用.我希望这将我的应用程序上传到 HockeyApp
.请帮帮我.我使用的是 Windows 8.1.
I have installed curl
and have set it as environment variable
in my system. But when running the curl
command its giving an error 'curl' is not recognized as an internal or external command, operable program or batch file.
I tried restarting my system but is of no use.I want this to upload my application to HockeyApp
. Please help me out.I am using Windows 8.1.
推荐答案
在windows中安装curl的步骤
在 Windows 上安装 cURL
在 Windows 上安装 cURL 需要遵循 4 个步骤.
There are 4 steps to follow to get cURL installed on Windows.
第 1 步和第 2 步是安装 SSL 库.第 3 步是安装 cURL.第 4 步是安装最近的证书
Step 1 and Step 2 is to install SSL library. Step 3 is to install cURL. Step 4 is to install a recent certificate
第一步:安装 Visual C++ 2008 Redistributables
来自 https://www.microsoft.com/en-za/download/details.aspx?id=29对于 64 位系统Visual C++ 2008 Redistributables (x64)对于 32 位系统Visual C++ 2008 Redistributables (x32)
From https://www.microsoft.com/en-za/download/details.aspx?id=29 For 64bit systems Visual C++ 2008 Redistributables (x64) For 32bit systems Visual C++ 2008 Redistributables (x32)
第二步:安装 Win(32/64) OpenSSL v1.0.0k Light
来自 http://www.shininglightpro.com/products/Win32OpenSSL.html对于 64 位系统Win64 OpenSSL v1.0.0k Light对于 32 位系统Win32 OpenSSL v1.0.0k Light
From http://www.shininglightpro.com/products/Win32OpenSSL.html For 64bit systems Win64 OpenSSL v1.0.0k Light For 32bit systems Win32 OpenSSL v1.0.0k Light
第三步:安装cURL
根据您的系统是 32 位还是 64 位,下载相应的** curl.exe.**例如,转到 Win64 - 通用部分并下载支持 SSL 的 Win64 二进制文件(未划掉 SSL 的那个).访问 http://curl.haxx.se/download.html
Depending on if your system is 32 or 64 bit, download the corresponding** curl.exe.** For example, go to the Win64 - Generic section and download the Win64 binary with SSL support (the one where SSL is not crossed out). Visit http://curl.haxx.se/download.html
将 curl.exe 复制到 C:WindowsSystem32
第四步:安装最近的证书
不要跳过这一步.从 https://curl.haxx.se/ca/cacert 下载有效 CERT 文件的最新副本.pem将其复制到放置 curl.exe 的同一文件夹 (C:WindowsSystem32) 并将其重命名为 curl-ca-bundle.crt
Do not skip this step. Download a recent copy of valid CERT files from https://curl.haxx.se/ca/cacert.pem Copy it to the same folder as you placed curl.exe (C:WindowsSystem32) and rename it as curl-ca-bundle.crt
如果你已经安装了curl
或者在完成上述步骤后,将安装目录添加到windows路径:
If you have already installed curl
or after doing the above steps, add the directory where it's installed to the windows path:
1 - 在桌面上,右键单击我的电脑,然后单击属性.
2 - 点击高级系统设置.
3 - 在系统属性"窗口中,单击环境变量按钮.
4 - 选择路径并点击编辑.
5 - 在末尾附加 ;c:path 到 curl 目录.
5 - 点击确定.
6 - 关闭并重新打开命令提示符
1 - From the Desktop, right-click My Computer and click Properties.
2 - Click Advanced System Settings .
3 - In the System Properties window click the Environment Variables button.
4 - Select Path and click Edit.
5 - Append ;c:path to curl directory at the end.
5 - Click OK.
6 - Close and re-open the command prompt
这篇关于Curl 未被识别为内部或外部命令、可运行的程序或批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!