Closed ghost closed 4 years ago
Does opam config var bin
work, if you execute the command inside a regular cygwin shell?
If not, this is expected behaviour. This error can happen, if there is no opam switch or your switch is in an invalid state.
@fdopen um ok, so how to fix it?
Just create a switch that works, e.g. with opam switch create 4.08.0+mingw64c
$ ocaml-env exec hello.ml
ocaml-env: internal error, uncaught exception:
Unix.Unix_error(1, "create_process", "hello.ml")
Well, you can't execute scripts under Windows, that only works under *nix. Try ocaml-env exec ocaml hello.ml
instead. (And inside a cygwin terminal, you don't need ocaml-env exec ...
at all, ocaml hello.ml
is enough).