From: "vrotaru.md@gmail.com" <vrotaru.md@gmail.com>
To: caml-list@inria.fr
Subject: Re: [Caml-list] why does "opam install graphics" fail?
Date: Wed, 14 Feb 2018 06:39:09 +0000 [thread overview]
Message-ID: <CAJgjwehATwUVXi9BfEZf5-ZRGRwH+=6yu+k+UU5QZXjQ-Pytvg@mail.gmail.com> (raw)
In-Reply-To: <E930BFBA-2D98-476E-9E94-15C5465ED778@TimLeonard.us>
[-- Attachment #1: Type: text/plain, Size: 2818 bytes --]
Have you installed the ocaml using opam? Then it is just means, that at
installation time, the necessary dependencies for compiling the Graphics
module where not found, and the configure script has left them out.
Add the required dependencies and re-install the opam switch.
Unfortunately it means re-compiling all installed packages. Maybe, you can
a) add the dependencies
b) Install an alias for your switch
c) copy the graphics related libs/stubs to the original swich
Looks, like it may work, but I have not tried it.
În mie., 14 feb. 2018 la 06:53, Tim Leonard <Tim@timleonard.us> a scris:
> 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.
>
>
[-- Attachment #2: Type: text/html, Size: 7947 bytes --]
next prev parent reply other threads:[~2018-02-14 6:39 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 [this message]
[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
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='CAJgjwehATwUVXi9BfEZf5-ZRGRwH+=6yu+k+UU5QZXjQ-Pytvg@mail.gmail.com' \
--to=vrotaru.md@gmail.com \
--cc=caml-list@inria.fr \
/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