From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 38CEE8239C for ; Wed, 14 Feb 2018 07:39:22 +0100 (CET) Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=vrotaru.md@gmail.com; spf=Pass smtp.mailfrom=vrotaru.md@gmail.com; spf=None smtp.helo=postmaster@mail-lf0-f45.google.com Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of vrotaru.md@gmail.com) identity=pra; client-ip=209.85.215.45; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="vrotaru.md@gmail.com"; x-sender="vrotaru.md@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of vrotaru.md@gmail.com designates 209.85.215.45 as permitted sender) identity=mailfrom; client-ip=209.85.215.45; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="vrotaru.md@gmail.com"; x-sender="vrotaru.md@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-lf0-f45.google.com) identity=helo; client-ip=209.85.215.45; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="vrotaru.md@gmail.com"; x-sender="postmaster@mail-lf0-f45.google.com"; x-conformance=sidf_compatible IronPort-PHdr: =?us-ascii?q?9a23=3AABMniBHRzsWLY6AcLyLA751GYnF86YWxBRYc798d?= =?us-ascii?q?s5kLTJ78oc6wAkXT6L1XgUPTWs2DsrQY07OQ6/iocFdDyK7JiGoFfp1IWk1Nou?= =?us-ascii?q?QttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZr?= =?us-ascii?q?KeTpAI7SiNm82/yv95HJbAhEmCexbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+?= =?us-ascii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tfmlDT2u0PzLwbYzdAqUDbSuTJolqlTlW?= =?us-ascii?q?DeH8Gb9k7gmnsUrB85QiLufQ/XdF55fq1dww4+OL0B9uqHp7CMOS12zLRGZxzD?= =?us-ascii?q?sF?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0CGDQDn2INahi3XVdFcHQEBBQELAYN5A?= =?us-ascii?q?T5wKINlgTmXEYICgReCaoYNh2+HcwobhSACgmoZBwQ0FAECAQEBAQEBAQEBEgE?= =?us-ascii?q?BAQgLCwgoL4I4IoJKAQICASMdARseAwELBgMCCzcCAiIBEQEFARwZihwBAw0Ik?= =?us-ascii?q?luRHUCMF4IFBQEcgwwFg2YKGScNWRNGghMBAQEHAQEBAQEBGgIBBRKEb4IVVIE?= =?us-ascii?q?DhRaFT4JqgmUBBIpkiV+PawkCgmABhT2NZIIfkiWLFIxwFCWBFzaBcnBSMoIUg?= =?us-ascii?q?kYfghJBN41sAQEB?= X-IPAS-Result: =?us-ascii?q?A0CGDQDn2INahi3XVdFcHQEBBQELAYN5AT5wKINlgTmXEYI?= =?us-ascii?q?CgReCaoYNh2+HcwobhSACgmoZBwQ0FAECAQEBAQEBAQEBEgEBAQgLCwgoL4I4I?= =?us-ascii?q?oJKAQICASMdARseAwELBgMCCzcCAiIBEQEFARwZihwBAw0IkluRHUCMF4IFBQE?= =?us-ascii?q?cgwwFg2YKGScNWRNGghMBAQEHAQEBAQEBGgIBBRKEb4IVVIEDhRaFT4JqgmUBB?= =?us-ascii?q?IpkiV+PawkCgmABhT2NZIIfkiWLFIxwFCWBFzaBcnBSMoIUgkYfghJBN41sAQE?= =?us-ascii?q?B?= X-IronPort-AV: E=Sophos;i="5.46,510,1511823600"; d="scan'208,217";a="313466292" Received: from mail-lf0-f45.google.com ([209.85.215.45]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 14 Feb 2018 07:39:21 +0100 Received: by mail-lf0-f45.google.com with SMTP id f137so27969146lfe.4 for ; Tue, 13 Feb 2018 22:39:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=bXaTCt1vRUwjXi+TDxbD8YQhlRA5gPQA1qpoKIYm5gI=; b=g7OnNqPjzwCMnK1tzIChIIXlEbxLW6BqpcV0Gc3iIU3evIMx9pOtQN2KDDNBZBDBbA P2I1YyMovUmqwpcfUtDPYbjcRVL3On4X+iHncnIim29kwYuXIoLb6E4voRqW+NAk4wyv aIi7V2mma3MmrRVw4n6f6zzhuZeqCSKU5dzmntooZMO8sMPlUOI1NHIkcDUyazt1X3t+ CDzXzt8i0F3ywMUdfhSAvxTbgoWVHR5lCr9FvwEeT1VNeFkEH4mEf5FmHdn5g6kKqKs3 7ZCeO72L2ylA/uO4niNMqPffaZTXrsW0TgBvCSONbqN+ZxMXhSHnsrfmhSGhojjK9mWg mY9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=bXaTCt1vRUwjXi+TDxbD8YQhlRA5gPQA1qpoKIYm5gI=; b=gQpJPGZBpbVd254o28X3yvp/tDsXd96pptVfVLmN8owGwbxXtJ3LIg7+F3V1cSMJgc 4O+Cxufsjh+J+93yutta4dWgIlDsKb4E3VhEBlZNmWxe084zXZLfjQjzhfA652uue+Sl MWrgsdxp3O/yzVxv9Dp/QqpaM1iN91OZ4FE1+9lnJjPYICuO7uenFH7IdjHsNQqgxJ6x sY63PkvQ1CS+2zJg2ZYXgp1HkXXs9DApAhuO7klNf0gmVPyfZ7u9DL/JJlvL77SHhR3g BK63zvgISV6tKc5r9Jko+RCupu1FOHc8+6SqTEQU9L9Oq0bNojoBjGAng70bB9VVcYZY DYhA== X-Gm-Message-State: APf1xPDMqCZxTMVR7FMXVVWrqwgHv060HycIW3JUUmGlqpwgnE1usWbH 9tk4aFpVlZYxqoKDZbVGNYJ+3AubEXxK7Zcn38E= X-Google-Smtp-Source: AH8x224nPHkSXtMhg+Klpeu1VSvpnZCVxLZAnpdf4YHefo3Do8G3noDROXyn807EEqFXcncMLTw7zgLX3WuLoynw9QQ= X-Received: by 10.25.78.130 with SMTP id u2mr2758053lfk.131.1518590359908; Tue, 13 Feb 2018 22:39:19 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: "vrotaru.md@gmail.com" Date: Wed, 14 Feb 2018 06:39:09 +0000 Message-ID: To: caml-list@inria.fr Content-Type: multipart/alternative; boundary="94eb2c1cdb7af634770565265e02" Subject: Re: [Caml-list] why does "opam install graphics" fail? --94eb2c1cdb7af634770565265e02 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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. =C3=8En mie., 14 feb. 2018 la 06:53, Tim Leonard a scri= s: > 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 > > =3D-=3D- Updating package repositories > =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D > [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: > =E2=88=97 install graphics 1.0 > > =3D-=3D- Gathering sources > =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D > > =3D-=3D- Processing actions > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D > [graphics: ocamlc graphics.cma] Command started > [ERROR] The compilation of graphics failed at "ocamlc -custom > graphics.cma -o > test". > > #=3D=3D=3D ERROR while installing graphics.1.0 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D# > # 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 > > =3D-=3D- Error report > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D > The following actions failed > =E2=88=97 install graphics 1.0 > No changes have been performed > > =3D-=3D- graphics.1.0 troubleshooting > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D > =3D> This package checks whether the Graphics library was compiled. > > --94eb2c1cdb7af634770565265e02 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Have you installed the ocaml using opam? Then it is j= ust means, that at installation time, the necessary dependencies for compil= ing the Graphics module where not found, and the configure script has left = them out.

Add the required dependencies and re-ins= tall the opam switch.

Unfortunately it means re-co= mpiling all installed packages. Maybe, you can

a) add the dependencies
b) Install an alias for your switc= h
c) copy the graphics related libs/stubs to the original swich

Looks, like it may work, but I have not tried it.

=C3=8En mie., 14 fe= b. 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.

=C2=A0 =C2=A0 ~/Documents/Work/Code/OCaml with graphics: opam update
=C2=A0 =C2=A0=C2=A0
=C2=A0 =C2=A0 =3D-=3D- Updating package repositories =3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D<= /div>
=C2=A0 =C2=A0 [default: http] Command started
=C2=A0 =C2=A0 [default: http] Command started
=C2=A0 =C2=A0 [default] synchronized from https://opam.ocaml.org<= /font>
=C2=A0 =C2=A0=C2=A0
=C2=A0 =C2=A0 ~/Documents/Work/Code/OCaml with graphics: opam upgrad= e
=C2=A0 =C2=A0 Already up-to-date.
=C2=A0 =C2=A0=C2=A0
= =C2=A0 =C2=A0 ~/Documents/Work/Code/OCaml with graphics: opam install graph= ics
=C2=A0 =C2=A0 The following actions will= be performed:
=C2=A0 =C2=A0 =C2=A0 =E2=88= =97 =C2=A0install graphics 1.0
=C2=A0 =C2=A0= =C2=A0
=C2=A0 =C2=A0 =3D-=3D- Gathering sour= ces =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D= -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D
=C2=A0 = =C2=A0=C2=A0
=C2=A0 =C2=A0 =3D-=3D- Processi= ng actions -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D= -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D
=C2= =A0 =C2=A0 [graphics: ocamlc graphics.cma] Command started
=C2=A0 =C2=A0 [ERROR] The compilation of graphics failed at = "ocamlc -custom graphics.cma -o
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 test".
=C2=A0 =C2=A0=C2=A0
=C2=A0 =C2=A0 #=3D= =3D=3D ERROR while installing graphics.1.0 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D#
=C2=A0 =C2=A0 # opam-version =C2= =A0 =C2=A0 =C2=A0 =C2=A0 1.2.2
=C2=A0 =C2=A0= # os =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 darwin=
=C2=A0 =C2=A0 # command =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ocamlc -custom graphics.cma -o test
=C2=A0 =C2=A0 # path =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 /Users/Tim/.opam/system/build/graphics.1.0<= /div>
=C2=A0 =C2=A0 # compiler =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 system (4.04.0)
=C2=A0 =C2= =A0 # exit-code =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A02
=C2=A0 =C2=A0 # env-file =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 /Users/Tim/.opam/system/build/graphics.1.0/graphics-14648-7afd23.env=
=C2=A0 =C2=A0 # stdout-file =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0/Users/Tim/.opam/system/build/graphics.1.0/graphics-146= 48-7afd23.out
=C2=A0 =C2=A0 # stderr-file = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0/Users/Tim/.opam/system/build/graphics.1.= 0/graphics-14648-7afd23.err
=C2=A0 =C2=A0 ##= # stderr ###
=C2=A0 =C2=A0 # File "_non= e_", line 1:
=C2=A0 =C2=A0 # Error: Can= not find file graphics.cma
=C2=A0 =C2=A0=C2= =A0
=C2=A0 =C2=A0 =3D-=3D- Error report -=3D= -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D
=C2= =A0 =C2=A0 The following actions failed
=C2= =A0 =C2=A0 =C2=A0 =E2=88=97 =C2=A0install graphics 1.0
=C2=A0 =C2=A0 No changes have been performed
= =C2=A0 =C2=A0=C2=A0
=C2=A0 =C2= =A0 =3D-=3D- graphics.1.0 troubleshooting -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D
=C2=A0 =C2=A0 =3D> This package checks whether the Graphics libr= ary was compiled.

=
--94eb2c1cdb7af634770565265e02--