Curl不被识别为内部或外部命令,可操作的程序或批处理文件 [英] Curl not recognized as an internal or external command, operable program or batch file

查看:340
本文介绍了Curl不被识别为内部或外部命令,可操作的程序或批处理文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了 curl ,并在我的系统中设置为环境变量。但是当运行 curl 命令时,它给出一个错误'curl'不被识别为内部或外部命令,可操作的程序或批处理文件。 code>我尝试重新启动我的系统,但没有用。我想这个将我的应用程序上传到 HockeyApp 。请帮助我。我使用Windows 8.1。

解决方案

在Windows中安装curl的步骤 / p>

在Windows上安装cURL



在Windows上。



步骤1和步骤2是安装SSL库。
步骤3是安装cURL。
步骤4是安装最近的证书



第一步:安装Visual C ++ 2008 Redistributables



http://www.shininglightpro.com/products/Win32OpenSSL.html
对于64位系统
Visual C ++ 2008可再发行组件(x64)
对于32位系统
Visual C ++ 2008可再发行组件(x32)



第二步:安装Win(32/64)OpenSSL v1.0.0k Light



http://www.shininglightpro.com/products/Win32OpenSSL.htmlrel =noreferrer> http://www.shininglightpro.com/products/Win32OpenSSL.html
对于64位系统
Win64 OpenSSL v1.0.0k Light
对于32位系统
Win32 OpenSSL v1.0.0k Light



第三步:安装cURL



根据您的系统是32位还是64位,请下载相应的** curl.exe。**
例如,转到Win64 - 通用部分,并下载具有SSL支持的Win64二进制文件(SSL未被删除的那个)
访问 http://curl.haxx.se/download.html
更具体的链接: http:// curl .haxx.se / latest.cgi?curl = win64-ssl-sspi



将curl.exe复制到C:\Windows \ System32



第四步:安装最近的证书



跳过此步骤。
https://curl.haxx.se/下载最新的有效CERT文件副本ca / cacert.pem
将其复制到与放置curl.exe(C:\Windows \System32)相同的文件夹,并将其重命名为 curl-ca-bundle.crt



如果您已经安装了 curl 安装到Windows路径:



1 - 在桌面上,右键点击我的电脑,然后点击属性

2 - 点击高级系统设置

3 - 在系统属性窗口中,单击环境变量按钮。

4 - 选择路径,然后点击编辑

5 - 附加; c: \\ path to curl directory

5 - 点击确定

6 - 关闭 重新开启 命令提示符


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.

解决方案

Steps to install curl in windows

Install cURL on Windows

There are 4 steps to follow to get cURL installed on Windows.

Step 1 and Step 2 is to install SSL library. Step 3 is to install cURL. Step 4 is to install a recent certificate

Step One: Install Visual C++ 2008 Redistributables

From http://www.shininglightpro.com/products/Win32OpenSSL.html For 64bit systems Visual C++ 2008 Redistributables (x64) For 32bit systems Visual C++ 2008 Redistributables (x32)

Step Two: Install Win(32/64) OpenSSL v1.0.0k Light

Also 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

Step Three: Install cURL

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 More specific Link: http://curl.haxx.se/latest.cgi?curl=win64-ssl-sspi

Copy curl.exe to C:\Windows\System32

Step Four: Install Recent Certificates

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:\Windows\System32) and rename it as curl-ca-bundle.crt

If you have already installed curl or after doing the above steps, add the directory where it's installed to the windows path:

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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆