Using Graphics with Mac 10.14.2 Mohave

Hi!

I am trying to install ocaml with graphics enabled on Mac via “brew install ocaml --with-x11”. However, I am told that --with-x11 is an “invalid option.” Has anyone else run into this error before and have a fix? Is there another way to install the graphics module? XQuartz is already installed.

The --with-x11 option worked well on a different computer running High Sierra.

Thanks so much for your help.

I believe Homebrew has removed the facility to have package options recently (in favour of binary bottles only). I haven’t investigated how to get graphics back though…

1 Like

Just install OCaml using opam, it will include the graphics library.