How do I install cURL on cygwin?

前端 未结 17 2043
夕颜
夕颜 2020-12-02 05:23

I tried to enable curl on cygwin but it says bash: curl: command not found

How do I install curl on cygwin?

相关标签:
17条回答
  • 2020-12-02 05:53

    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!

    0 讨论(0)
  • 2020-12-02 05:54

    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.

    0 讨论(0)
  • 2020-12-02 05:56

    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.

    0 讨论(0)
  • 2020-12-02 05:57

    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.

    0 讨论(0)
  • 2020-12-02 06:03

    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)

    0 讨论(0)
  • 2020-12-02 06:04

    Nobody said how to install apt-cyg

    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.

    0 讨论(0)
提交回复
热议问题