module - OCaml - Cannot find graphics.cma -


when loading graphics module in toplevel, error saying "cannot find graphics.cma".

i'm using os x , i'm pretty sure i've installed ocaml correctly since i've been using month now. seems graphics module wasn't included in ocaml package.

how can fix issue, or how can install graphics module myself?

first of all, check graphics installed. library optional , therefore may not installed. there several ways check following should work situation:

$ ls `ocamlc -where`/graphics* 

if there no file listed above command, graphics not installed , have reinstall ocaml compiler enabling graphics.

if files graphics.cma there, have show how try compile code graphics. best answer varies depending on how compile: inside toplevel, hand compiling ocamlc, or build tool ocamlbuild.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -