Why can not be distributed.

Ocaml is installed on my cygwin machine, but simple compilers fail. The permissions are great, as you can see from the interaction below. OCAMLLIB is right; What's wrong?

$ cat t.ml

print_string "hi";

$ ocamlopt t.ml
>> Fatal error: cannot open pervasives.cmi
Fatal error: exception Misc.Fatal_error

$ echo $OCAMLLIB
/cygdrive/c/OCaml/lib

$ ls -l /cygdrive/c/OCaml/lib/pervasives.cmi
-rwxrwxrwx+ 1 Lyn None 15094 Oct  8 01:30 /cygdrive/c/OCaml/lib/pervasives.cmi
+5
source share
1 answer

A possible solution is to run this command in cygwin:

export OCAMLLIB=C:\\OCaml\\lib

The key came from this message flow .

+6
source

All Articles