I am having trouble getting cURL to run on Windows.
I have downloaded a cURL zip file from here, but it seems to contain source code, not an executable.
Do I need to compile cURL to run it? If yes, then how do I do that?
Where can I find .exe
downloads for cURL ?
I have looked for documentation on installing cURL, but there is little to be found.
crt . Invoke curl.exe from a command window (in Windows, click Start > Run and then enter "cmd" in the Run dialog box). You can enter curl --help to see a list of cURL commands.
On Windows 10 or newer, Curl comes with an operating system. The executable file curl.exe is located in the C:\Windows\System32 folder and, accordingly, is accessible through the PATH environment variable and can be called from anywhere.
Installing Curl If you have curl installed, the system will print curl: try 'curl --help' or 'curl --manual' for more information . Otherwise, you will see something like curl command not found . If curl is not installed you can easily install it using the package manager of your distribution.
It is possible that you won't need to download anything:
If you are on Windows 10, version 1803 or later, your OS ships with a copy of curl, already set up and ready to use.
If you have Git for Windows installed (if you downloaded Git from git-scm.com, the answer is yes), you have curl.exe
under:
C:\Program Files\Git\mingw64\bin\
Simply add the above path to PATH
.
If you are already using a package manager, it may be more convenient to install with one:
choco install curl
pacman -S curl
scoop install curl
It is too easy to accidentally download the wrong thing. If, on the curl homepage, you click the large and prominent "Download" section in the site header, and then the large and prominent curl-7.62.0.tar.gz
link in its body, you will have downloaded a curl source package, which contains curl's source code but not curl.exe
. Watch out for that.
Instead, click the large and prominent download links on this page. Those are the official Windows builds, and they are provided by the curl-for-win project.
If you have more esoteric needs (e.g. you want cygwin builds, third-party builds, libcurl, header files, sources, etc.), use the curl download wizard. After answering five questions, you will be presented with a list of download links.
Find curl.exe
within your downloaded package; it's probably under bin\
.
Pick a location on your hard drive that will serve as a permanent home for curl:
C:\Program Files\curl\
or C:\curl\
will do.PATH
, use a single folder such as C:\Program Files\tools\
or C:\tools\
for the purpose.Place curl.exe
under the folder. And never move the folder or its contents.
Next, you'll want to make curl available anywhere from the command line. To do this, add the folder to PATH
, like this:
curl.exe
lives.PATH
.Now enjoy typing curl at any command prompt. Party time!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With