tag:help.appveyor.com,2012-11-13:/discussions/problems/6312-curl-command-not-foundAppVeyor: Discussion 2018-10-19T08:18:16Ztag:help.appveyor.com,2012-11-13:Comment/421953022017-03-20T19:31:19Z2017-03-20T19:31:19ZCurl: command not found<div><p>Will take a look. Thanks for reporting that.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/421953022017-03-20T19:49:02Z2017-03-20T19:49:02ZCurl: command not found<div><p>OK, found the issue. We are rolling out an update to build worker images and there is latest Git 2.12.0 installed.</p>
<p>Previous versions of Git had <code>curl.exe</code> in <code>C:\Program Files\Git\usr\bin</code> folder which is added in <code>PATH</code> on build workers. The main reason it was on PATH was <code>ssh.exe</code> utility Git (and Mercurial) required to fetch repo via SSH.</p>
<p>Now, <code>curl.exe</code> has gone from <code>C:\Program Files\Git\usr\bin</code> and left in <code>C:\Program Files\Git\mingw64\bin</code> only. To fix the build add this to your <code>appveyor.yml</code>:</p>
<pre>
<code>install:
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%</code>
</pre>
<p>Alternatively, CURL can be installed via Chocolatey or used from other locations such as MinGW, Cygwin and MSYS: <a href="https://www.appveyor.com/docs/build-environment/#mingw-msys-cygwin">https://www.appveyor.com/docs/build-environment/#mingw-msys-cygwin</a></p>
<p>I don't know whether we should explicitly add <code>C:\Program Files\Git\mingw64\bin</code> folder into PATH on build workers or not - there is always a risk of causing another conflict. Less stuff on PATH is better.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/421953022017-03-20T20:33:03Z2017-03-20T20:33:05ZCurl: command not found<div><p>Thanks Feodor, this fix worked for me:<br>
install:<br>
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%</p></div>Tomtag:help.appveyor.com,2012-11-13:Comment/421953022017-03-20T20:33:21Z2017-03-20T20:33:21ZCurl: command not found<div><p>This worked, thank you!</p></div>jacob.becktag:help.appveyor.com,2012-11-13:Comment/421953022017-03-21T01:34:03Z2017-03-21T01:34:05ZCurl: command not found<div><p>This fix didn't work for me; does anyone know what I am doing wrong? Here's a failing build log: <a href="https://ci.appveyor.com/project/23Skidoo/cabal/build/%233344%20(master)">https://ci.appveyor.com/project/23Skidoo/cabal/build/%233344%20(mas...</a></p></div>Edward Z. Yangtag:help.appveyor.com,2012-11-13:Comment/421953022017-03-21T04:37:38Z2017-03-21T04:37:42ZCurl: command not found<div><p>Answer: set PATH after refreshenv; otherwise it gets clobbered ;)</p></div>Edward Z. Yangtag:help.appveyor.com,2012-11-13:Comment/421953022017-03-21T19:51:23Z2017-03-21T19:51:24ZCurl: command not found<div><p>Thanks for the speedy response, Feodor.<br>
I've an additional question, though: I see that the VS2017 environment doesn't have MinGW:<br>
<a href="https://www.appveyor.com/docs/build-environment/#mingw-msys-cygwin">https://www.appveyor.com/docs/build-environment/#mingw-msys-cygwin</a></p>
<p>I'm not on that environment yet, but thinking about moving. Will MinGW appear, or should I look for an alternative to that curl?</p></div>Blair Conradtag:help.appveyor.com,2012-11-13:Comment/421953022017-03-21T21:51:31Z2017-03-21T21:51:31ZCurl: command not found<div><p>We'll install <code>curl</code> on Visual Studio 2017 image too: <a href="https://github.com/appveyor/ci/issues/1431">https://github.com/appveyor/ci/issues/1431</a></p>
<p>For now it can be easily installed with <code>choco install curl</code> during the build.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/421953022017-03-22T10:11:20Z2017-03-22T10:11:21ZCurl: command not found<div><p>Thanks, Feodor.</p></div>Blair Conradtag:help.appveyor.com,2012-11-13:Comment/421953022018-07-06T08:47:07Z2018-07-06T08:47:08ZCurl: command not found<div><p>Thank You so much.. Feodor...</p></div>Syafina