-
Notifications
You must be signed in to change notification settings - Fork 358
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
Installing opam does not seem to install switch #4820
Comments
Assuming you haven't trimmed anything from that log, is |
Oh no, hang on - even with |
After doing
|
Are you running this inside of a docker container or similar container/sandbox? |
This is in Debian on WSL2 on Windows 10 version 20H2 |
Are you certain that's WSL2 and not WSL1? ( |
You are right it was still running on version 1. After upgrading to version 2 it seems to work, is opam not compatible with WSL1? |
opam itself should be. It's just its sandboxing mecanism (bubblewrap) that is not. See ocaml/opam-repository#12050 for more info. I'm guessing this issue can now be closed. Please reopen if I'm mistaken. I've opened #4821 to make opam init less confusing per your setup in your original comment. Using Thanks for your time! |
Thank you for helping. Perhaps this would be a candidate for something to include somewhere in the installation documentation (perhaps on the website). At least it wasn't clear to me that this error was because of WSL1 and I couldn't find any documentation anywhere stating that opam is not compatible with WSL1. |
Mmh, that's fair. I've opened #4822 for that purpose. Thanks for the suggestion. I believe more recent versions of opam (2.0.3 is 2 and a half years old) would have caught that in the opam/src/client/opamAuxCommands.ml Line 524 in 295e273
|
Hi,
I am trying to install opam on Debian, to install I run:
All complete without errors or warnings, the output from
opam init is
:However, if I try to install something with
opam install ...
I get the following error:Is opam not supposed to create a switch on install?
I tried to create a switch, but it seems I have hundreds of different compilers to choose from, which one should I select for the switch?
Opam config report:
The text was updated successfully, but these errors were encountered: