Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows: opam fails to install conf-libcurl. #899

Open
yosefAlsuhaibani opened this issue Nov 22, 2024 · 1 comment
Open

Windows: opam fails to install conf-libcurl. #899

yosefAlsuhaibani opened this issue Nov 22, 2024 · 1 comment

Comments

@yosefAlsuhaibani
Copy link

related: ocaml/opam-repository#26894.

Using setup-ocaml@v3 on a windows GHA run: trying to install conf-libcurl fails with the error /usr/bin/sh: line 1: curl-config: command not found. SSH-ing into the runner (w/https://github.com/mxschmitt/action-tmate
) I was able to find curl-config under /d/cygwin/usr/x86_64-w64-mingw32/sys-root/mingw/bin, which makes me believe that setup-ocaml isn't configuring the PATH correctly.

I've reproduced this here: yosefAlsuhaibani/test-ocaml-setup-windows#4, where in the latest commit this run fails (https://github.com/yosefAlsuhaibani/test-ocaml-setup-windows/actions/runs/11978037743/job/33397219358) which is done by this workflow (https://github.com/yosefAlsuhaibani/test-ocaml-setup-windows/actions/runs/11978037743/workflow).

@yosefAlsuhaibani yosefAlsuhaibani changed the title Windows: opam fails to install conf-libcurl; curl-config: not found Windows: opam fails to install conf-libcurl. Nov 22, 2024
@tobil4sk
Copy link

tobil4sk commented Dec 7, 2024

It looks like /usr/x86_64-w64-mingw32/sys-root/mingw/bin should be added to PATH by the mingw-w64-shims package: https://github.com/dra27/mingw-w64-shims/blob/3c4a82700d9b03443ad6f2927449f7a8f25a77cf/mingw-w64-shims.opam#L8, perhaps @dra27 might have some advice on what could be missing here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants