From: Tim Leonard <Tim@TimLeonard.us>
To: Xavier Clerc <xclerc@janestreet.com>
Cc: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] why does "opam install graphics" fail?
Date: Wed, 14 Feb 2018 11:08:28 -0500 [thread overview]
Message-ID: <336C66CC-DAED-4E7F-9D62-7BB4E5FEB82C@TimLeonard.us> (raw)
In-Reply-To: <CAGi3GpxuUdWvyVo7z4w=nT9HmnE6BVJLyOV4PNMoJdnSug5L_A@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3874 bytes --]
Thanks, Xavier. Yes, I have X11 installed.
> On Feb 14, 2018, at 10:17 AM, Xavier Clerc <xclerc@janestreet.com> wrote:
>
> Not sure it is relevant to your case, but under macOS
> you need to manually install X11. For instance you can
> use https://www.xquartz.org/ <https://www.xquartz.org/>
>
> (Obviously, it should be installed before compiling OCaml.)
>
>
> Hope this helps,
>
> Xavier
>
>
> On Wed, Feb 14, 2018 at 3:03 PM, Tim Leonard <Tim@timleonard.us <mailto:Tim@timleonard.us>> wrote:
> 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 <mailto: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 <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 <https://sympa.inria.fr/sympa/arc/caml-list>
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners <http://groups.yahoo.com/group/ocaml_beginners>
> Bug reports: http://caml.inria.fr/bin/caml-bugs <http://caml.inria.fr/bin/caml-bugs>
>
[-- Attachment #2: Type: text/html, Size: 7546 bytes --]
next prev parent reply other threads:[~2018-02-14 16:08 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <F5976597-B82E-4D1A-BF50-11C3FD9BE3E1@TimLeonard.us>
2018-02-14 4:53 ` Tim Leonard
2018-02-14 6:39 ` vrotaru.md
[not found] ` <520e5733-b31b-5f65-d878-9d8de4a5f90a@bioreg.kyushu-u.ac.jp>
2018-02-14 15:03 ` Tim Leonard
2018-02-14 15:17 ` Xavier Clerc
2018-02-14 16:08 ` Tim Leonard [this message]
2018-02-14 16:15 ` Xavier Clerc
2018-02-14 17:16 ` Tim Leonard
2018-02-14 17:26 ` David Allsopp
2018-02-14 18:31 ` Tim Leonard
2018-02-14 18:36 ` vrotaru.md
2018-02-14 18:39 ` Tim Leonard
2018-02-14 19:24 ` vrotaru.md
2018-02-14 19:58 ` Tim Leonard
2018-02-14 18:37 ` Tim Leonard
[not found] ` <CAGi3GpyM_Xs2JMqpomi-SbnsGpnecfQaqXK7vJ-+kb3z4dYz3A@mail.gmail.com>
[not found] ` <CAGi3GpwZ26+mJgbuKEXqaAHd3CZgPzOcDM-keizNekT2FuAO_A@mail.gmail.com>
2018-02-14 18:28 ` Tim Leonard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=336C66CC-DAED-4E7F-9D62-7BB4E5FEB82C@TimLeonard.us \
--to=tim@timleonard.us \
--cc=caml-list@inria.fr \
--cc=xclerc@janestreet.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox