I’m about to start working with ocaml 4.10 (pre-beta), and would like to try to use opam to build it and then install packages, test them out, etc. Looking around, I don’t see a simple way to do this – am I mistaken? I can of course revert to the old-skool way, but I figured if there’s a way to use opam, that’d be nice.
This appears to work, but the first command gave an error:
[WARNING] No switch is currently set, perhaps you meant '--set-default'?
[beta] Initialised
[ERROR] No switch is currently set. Please use 'opam switch' to set or install
a switch
The next command did create the switch (without errors) and ocamlc --version confirms that it’s what I desire, so it seems to all work fine.
Yep, I did the opam init beforehand. I have a standard script I follow to set up opam sandboxes. But regardless, it all worked out (even with the error).