Reputation: 11
I followed http://ocaml.org/learn/tutorials/introduction_to_gtk.html I installed OPAM, and then :
opam install lablgtk
It has finished successfully.
But when I typed:
Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH");;
I got:
Exception: Not_found.
When I am wrong ?
Upvotes: 0
Views: 409
Reputation: 6478
The error indicates that the environment variable OCAML_TOPLEVEL_PATH
is not defined. Use
eval $(opam config env)
to let opam set the appropriate value for you. See the documentation for additional details.
Upvotes: 0