xawey1
xawey1

Reputation: 11

Installing gtk by opam

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

Answers (1)

Michaël Le Barbier
Michaël Le Barbier

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

Related Questions