4

When I type #require " in utop, I get this message every time I type an additional character after ".

[WARNING] cannot read directory /usr/lib/ocaml/METAS: No such file or directory

Package importing doesn't seem to be working. I tried re-installing utop via opam but the error persists. Does anybody know what might be wrong?

Mei Zhang
  • 1,434
  • 13
  • 29
  • did you do `eval $(opam env)`, and if you did, then what is the output of `opam env`? – ivg Feb 07 '19 at 15:50
  • 1
    Running `eval \`opam config env\`` fixed it. Is it recommended to run this manually all the time or should I add it to my `.bash_profile` or something? – Mei Zhang Feb 13 '19 at 19:38
  • Yep, add it and run it every time to be sure :) – ivg Feb 14 '19 at 11:16

1 Answers1

0

One possible cause, not the only cause, can be that you're missing the Ocaml libraries. On Debian you can install ocaml-libs.

poolie
  • 9,289
  • 1
  • 47
  • 74