Thanks for the suggestion, but it doesn't seem to have helped. I get the same error with the same messages.
Do I need to rebuild from further back?
> On Feb 14, 2018, at 12:14 AM, Francois BERENGER <berenger@bioreg.kyushu-u.ac.jp > wrote:
>
> Install a compiler via opam instead of relying on the system one.
>
> $ opam switch 4.04.0
> $ eval `opam config env`
> $ opam install graphics
>
> I am quite sure it would solve your problem.
-->
> On 02/14/2018 01:53 PM, Tim Leonard wrote:
>> I tried to install the ocaml graphics package, but it fails. Any
>> suggestions for how I can fix it?
>> Other than the missing graphics package, my ocaml install is working fine.
>>
>> ~/Documents/Work/Code/OCaml with graphics: opam update
>>
>> =-=- Updating package repositories
>> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>> [default: http] Command started
>> [default: http] Command started
>> [default] synchronized from https://opam.ocaml.org
>>
>> ~/Documents/Work/Code/OCaml with graphics: opam upgrade
>> Already up-to-date.
>>
>> ~/Documents/Work/Code/OCaml with graphics: opam install graphics
>> The following actions will be performed:
>> ∗ install graphics 1.0
>>
>> =-=- Gathering sources
>> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>>
>> =-=- Processing actions
>> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>> [graphics: ocamlc graphics.cma] Command started
>> [ERROR] The compilation of graphics failed at "ocamlc -custom
>> graphics.cma -o
>> test".
>>
>> #=== ERROR while installing graphics.1.0
>> ======================================#
>> # opam-version 1.2.2
>> # os darwin
>> # command ocamlc -custom graphics.cma -o test
>> # path /Users/Tim/.opam/system/build/graphics.1.0
>> # compiler system (4.04.0)
>> # exit-code 2
>> # env-file
>> /Users/Tim/.opam/system/build/graphics.1.0/graphics-14648- 7afd23.env
>> # stdout-file
>> /Users/Tim/.opam/system/build/graphics.1.0/graphics-14648- 7afd23.out
>> # stderr-file
>> /Users/Tim/.opam/system/build/graphics.1.0/graphics-14648- 7afd23.err
>> ### stderr ###
>> # File "_none_", line 1:
>> # Error: Cannot find file graphics.cma
>>
>> =-=- Error report
>> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>> The following actions failed
>> ∗ install graphics 1.0
>> No changes have been performed
>>
>> =-=- graphics.1.0 troubleshooting
>> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>> => This package checks whether the Graphics library was compiled.
>>
Caml-list mailing list. Subscription management and archives:
https://sympa.inria.fr/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs