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

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -