I tried to enable curl on cygwin but it says bash: curl: command not found
How do I install curl on cygwin?
apt-cyg
is a great installer similar to apt-get to easily install any packages for Cygwin.
$ apt-cyg install curl
Note: apt-cyg
should be first installed. You can do this from Windows command line:
cd c:\cygwin
cygwinsetup.exe -q -P wget,tar,qawk, bzip2,vim,lynx
Close Windows cmd, and open Cygwin Bash.
$ lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyg install apt-cyg /bin
$ chmod +x /bin/apt-cyg
From the documentation:
Installing and Updating Cygwin for 64-bit versions of Windows
Run setup-x86_64.exe any time you want to update or install a Cygwin package for 64-bit windows. The signature for setup-x86_64.exe can be used to verify the validity of this binary using this public key.
https://cygwin.com/install.html
In order to use the command-line version of curl, you need the curl executable. So, run the Cygwins Setup.exe, and select curl (under Net->curl). That one uses libcurl3, which is located in Libs->libcurl3. But libcurl3 will be pulled in as a dependency if it's not already installed. So, just select Net->curl and you're good to go.
In the Cygwin package manager, click on curl from within the "net" category. Yes, it's that simple.
On the Windows system where you want to install Cygwin with cURL download and run the Cygwin installer
64-bit: cygwin.com/setup-x86_64.exe 32-bit: cygwin.com/setup-x86.exe (if already installed, go to the setup file existed path)
D:\cygwin\setup (where the Cygwin is existed)
Click on the setup (setup-x86_64)
Follow the prompts in the Cygwin Setup wizard.
You can leave most settings at their default values. Pay specific attention to the following:
In the Select Your Internet Connectioin screen, select "Install from Internet".
In the Choose a download site screen, choose a site from the list, or add your own sites to the list, I have Chosen a: “mirrors.xmission.com”
The Select Packages screen displays a list of all the available packages and lets you select those you want to install. By default, only the packages in the "Base" category are marked for installation. The "Base" category does not include tools like cURL. You should select those explicitly.
By default, the packages are grouped by category. Click the View button to toggle to the Full view
Select all the curl packages by clicking the "Skip" button for each package once. Note how the "Skip" label changes to show the version number of the selected package.
the Select Packages screen should look like
Click Next through the rest of the wizard. The selected packages are downloaded and installed.
It worked for me and it resolved the issue : bash curl command not found cygwin
I just encountered this.
1) Find the cygwin setup.exe file from http://cygwin.com/ and run it.
2) Click/enter preferences until you reach the "Select Packages" window. (See image)
3) Click (+) for Net
4) Click the entry for curl. (Make sure you select the checkbox for the Binary)
5) Install.
6) Open a cygwin window and type curl.exe (should be available now).