I don’t know if this is relevant to anyone, but I tried installing ezcurl with opam, and that also failed. The first error was that it couldn’t find curl-config. I opened the Cygwin installer and installed libcurl4. Then it failed with the message: “No suitable C compiler found,” or something like that. I’ll try again in a few months when new versions of opam are available. Thanks for the help, though.
Maybe some Windows people could chime in with thoughts? Eg @dra27
The opam-file meta-data underlying the opam-repo lives at GitHub - ocaml/opam-repository: Main public package repository for opam, the source package manager of OCaml. Windows support is a relatively recent addition to it, as those previously lived in a separate repo (see this old installer page for more info). All ~4400 packages do not work out of the box yet. This Windows status page reveals the current state of affairs: https://windows.check.ci.dev/
From the status page, it is clear that ezcurl
fails due to a failing dependency, and its latest opam file opam-repository/packages/ezcurl/ezcurl.0.2.4/opam at master · ocaml/opam-repository · GitHub reveals a dependency on ocurl
which is indeed red in the above status page.
From this latest merged PR GHA: run tests on Windows by MisterDA · Pull Request #99 · ygrek/ocurl · GitHub by Antonin it looks like it should be able to run under Windows. The CHANGES.txt
on the ocurl
repo further reveals lots of updates since the last release, incl. a switch to building with dune
. For a start, I would try pinning the repo’s master
branch (until a new release is rolled out).
The curl-config
bit is tracked in libcurl expects to install a shell-script, rather than using pkgconf · Issue #12 · ocaml-windows/papercuts · GitHub