I tried to enable curl on cygwin but it says bash: curl: command not found
How do I install curl on cygwin?
I searched for curl on the cygwin packages part of their home page.
I found this link http://cygwin.com/packages/curl/
.
But that wasn't helpful because I couldn't download anything
So I searched for the curl-7.20.1-1 cygwin
on Google.
I found this helpful site mirrors.xmission.com/cygwin/release/curl/
That site had a link to download curl-7.20.1-1.tar.bz2
. I unzipped it using 7zip. It unzips it into ./user/bin/
or something so I had to find curl.exe
in the local /usr/bin
folder and put it into my /bin
folder of c:\cygwin
Finally I could use cURL!
This drove me crazy. I hope it helps someone!
Installing libcurl-devel
worked for me.
Run cygwin setup. After you reach the Select package window search for curl, as shown in the screenshot. Select libcurl-devel
and install the package.
If you don't see a certain package, you can access to a full list of ports (also unnoficials, the packages you see on the web) launching the setup.exe with -k
argument with value http://cygwinports.org/ports.gpg
(example: C:\cygwin\setup\setup-x86.exe -K http://cygwinports.org/ports.gpg
).
Doing so, you can choose a lot of extra packages, also extra versions of cURL (compat one). I do that to get Apache, cUrl, php5, php5-curl and some others :)
I don't know if apt-cyg can get those extra packages.
For future reference:
Cygwin comes with many packages (among them curl, as you found) to install one of them you run the setup.exe
program.
I just copied the folder "curl-7.43.0" from zip file that I downloaded from curl website curl.haxx.se into cygwin64 folder on drive C:. And then I have used it with prefix curl in cygwin command terminal.
My actual download location from softpedia, I have used Softpedia Mirror (US)
in cygwin
lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyg
install apt-cyg /bin
now you can
apt-cyg install curl
For more, see the official github repository of apt-cyg
.