caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] why does "opam install graphics" fail?
       [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>
  0 siblings, 2 replies; 15+ messages in thread
From: Tim Leonard @ 2018-02-14  4:53 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 2142 bytes --]

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: 8615 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Caml-list] why does "opam install graphics" fail?
  2018-02-14  4:53 ` [Caml-list] why does "opam install graphics" fail? Tim Leonard
@ 2018-02-14  6:39   ` vrotaru.md
       [not found]   ` <520e5733-b31b-5f65-d878-9d8de4a5f90a@bioreg.kyushu-u.ac.jp>
  1 sibling, 0 replies; 15+ messages in thread
From: vrotaru.md @ 2018-02-14  6:39 UTC (permalink / raw)
  To: caml-list

[-- 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 --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Caml-list] why does "opam install graphics" fail?
       [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
  0 siblings, 1 reply; 15+ messages in thread
From: Tim Leonard @ 2018-02-14 15:03 UTC (permalink / raw)
  To: caml-list

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.
>> 


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Caml-list] why does "opam install graphics" fail?
  2018-02-14 15:03     ` Tim Leonard
@ 2018-02-14 15:17       ` Xavier Clerc
  2018-02-14 16:08         ` Tim Leonard
  0 siblings, 1 reply; 15+ messages in thread
From: Xavier Clerc @ 2018-02-14 15:17 UTC (permalink / raw)
  To: Tim Leonard; +Cc: caml-list

[-- Attachment #1: Type: text/plain, Size: 3470 bytes --]

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/

(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> 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> 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
>

[-- Attachment #2: Type: text/html, Size: 5208 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Caml-list] why does "opam install graphics" fail?
  2018-02-14 15:17       ` Xavier Clerc
@ 2018-02-14 16:08         ` Tim Leonard
  2018-02-14 16:15           ` Xavier Clerc
  0 siblings, 1 reply; 15+ messages in thread
From: Tim Leonard @ 2018-02-14 16:08 UTC (permalink / raw)
  To: Xavier Clerc; +Cc: caml-list

[-- 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 --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Caml-list] why does "opam install graphics" fail?
  2018-02-14 16:08         ` Tim Leonard
@ 2018-02-14 16:15           ` Xavier Clerc
  2018-02-14 17:16             ` Tim Leonard
  0 siblings, 1 reply; 15+ messages in thread
From: Xavier Clerc @ 2018-02-14 16:15 UTC (permalink / raw)
  To: Tim Leonard; +Cc: caml-list

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

On Wed, Feb 14, 2018 at 4:08 PM, Tim Leonard <Tim@timleonard.us> wrote:

> Thanks, Xavier. Yes, I have X11 installed.
>

Is it in a "standard" location? The configure script will consider the
paths listed here:

https://github.com/ocaml/ocaml/blob/1d20e28d987e03d7023ce565d38b02a8167ce63d/configure#L1683

[-- Attachment #2: Type: text/html, Size: 1306 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Caml-list] why does "opam install graphics" fail?
  2018-02-14 16:15           ` Xavier Clerc
@ 2018-02-14 17:16             ` Tim Leonard
  2018-02-14 17:26               ` David Allsopp
       [not found]               ` <CAGi3GpyM_Xs2JMqpomi-SbnsGpnecfQaqXK7vJ-+kb3z4dYz3A@mail.gmail.com>
  0 siblings, 2 replies; 15+ messages in thread
From: Tim Leonard @ 2018-02-14 17:16 UTC (permalink / raw)
  To: caml-list; +Cc: Xavier Clerc

Yes, X11 is in /opt/X11/include/ (and there's also a link from /usr/X11).

But since I ran this:

	$ opam switch 4.04.0
	$ eval `opam config env`
	$ opam install graphics

I can’t use topfind any more:

	# #use "topfind";;
	Cannot find file topfind.
	#


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Caml-list] why does "opam install graphics" fail?
  2018-02-14 17:16             ` Tim Leonard
@ 2018-02-14 17:26               ` David Allsopp
  2018-02-14 18:31                 ` Tim Leonard
       [not found]               ` <CAGi3GpyM_Xs2JMqpomi-SbnsGpnecfQaqXK7vJ-+kb3z4dYz3A@mail.gmail.com>
  1 sibling, 1 reply; 15+ messages in thread
From: David Allsopp @ 2018-02-14 17:26 UTC (permalink / raw)
  To: Tim Leonard; +Cc: caml-list, Xavier Clerc

On 14 Feb 2018, at 17:17, Tim Leonard <Tim@TimLeonard.us> wrote:
> 
> Yes, X11 is in /opt/X11/include/ (and there's also a link from /usr/X11).
> 
> But since I ran this:
> 
>    $ opam switch 4.04.0
>    $ eval `opam config env`
>    $ opam install graphics
> 
> I can’t use topfind any more:
> 
>    # #use "topfind";;
>    Cannot find file topfind.
>    #

You need to opam install ocamlfind - your new switch will have no packages in it.


David

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Caml-list] why does "opam install graphics" fail?
       [not found]                 ` <CAGi3GpwZ26+mJgbuKEXqaAHd3CZgPzOcDM-keizNekT2FuAO_A@mail.gmail.com>
@ 2018-02-14 18:28                   ` Tim Leonard
  0 siblings, 0 replies; 15+ messages in thread
From: Tim Leonard @ 2018-02-14 18:28 UTC (permalink / raw)
  To: caml-list; +Cc: Xavier Clerc

[-- Attachment #1: Type: text/plain, Size: 234 bytes --]

Yes, but `opam install graphics` did fail.


> On Feb 14, 2018, at 12:31 PM, Xavier Clerc <xclerc@janestreet.com> wrote:
> 
> Wait, if `opam install graphics` does not fail,
> it probably means that graphics is actually
> installed.


[-- Attachment #2: Type: text/html, Size: 1586 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Caml-list] why does "opam install graphics" fail?
  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:37                   ` Tim Leonard
  0 siblings, 2 replies; 15+ messages in thread
From: Tim Leonard @ 2018-02-14 18:31 UTC (permalink / raw)
  To: caml-list; +Cc: David Allsopp

[-- Attachment #1: Type: text/plain, Size: 272 bytes --]

On Feb 14, 2018, at 12:26 PM, David Allsopp <dra-news@metastack.com> wrote:

> You need to opam install ocamlfind - your new switch will have no packages in it.


I tried, and got this:
	[NOTE] Package ocamlfind is already installed (current version is 1.7.3-1).


[-- Attachment #2: Type: text/html, Size: 1431 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Caml-list] why does "opam install graphics" fail?
  2018-02-14 18:31                 ` Tim Leonard
@ 2018-02-14 18:36                   ` vrotaru.md
  2018-02-14 18:39                     ` Tim Leonard
  2018-02-14 18:37                   ` Tim Leonard
  1 sibling, 1 reply; 15+ messages in thread
From: vrotaru.md @ 2018-02-14 18:36 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 108 bytes --]

You need not just X, but also Xlib development headers to be installed.

At least, that's the case on linux

[-- Attachment #2: Type: text/html, Size: 172 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Caml-list] why does "opam install graphics" fail?
  2018-02-14 18:31                 ` Tim Leonard
  2018-02-14 18:36                   ` vrotaru.md
@ 2018-02-14 18:37                   ` Tim Leonard
  1 sibling, 0 replies; 15+ messages in thread
From: Tim Leonard @ 2018-02-14 18:37 UTC (permalink / raw)
  To: Tim Leonard; +Cc: caml-list, David Allsopp

[-- Attachment #1: Type: text/plain, Size: 584 bytes --]

Sorry, it seems to have gotten installed by something else I just did (installing batteries and menhir, perhaps?). 
In any case, #use “topfind” now works, but still no graphics.


> On Feb 14, 2018, at 1:31 PM, Tim Leonard <Tim@TimLeonard.us> wrote:
> 
> On Feb 14, 2018, at 12:26 PM, David Allsopp <dra-news@metastack.com <mailto:dra-news@metastack.com>> wrote:
> 
>> You need to opam install ocamlfind - your new switch will have no packages in it.
> 
> 
> I tried, and got this:
> 	[NOTE] Package ocamlfind is already installed (current version is 1.7.3-1).
> 


[-- Attachment #2: Type: text/html, Size: 2144 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Caml-list] why does "opam install graphics" fail?
  2018-02-14 18:36                   ` vrotaru.md
@ 2018-02-14 18:39                     ` Tim Leonard
  2018-02-14 19:24                       ` vrotaru.md
  0 siblings, 1 reply; 15+ messages in thread
From: Tim Leonard @ 2018-02-14 18:39 UTC (permalink / raw)
  To: caml-list; +Cc: vrotaru.md

Sorry, but I don’t even know what that would entail. Can you tell me how I can check to see if they’re installed, or how to install them?

> On Feb 14, 2018, at 1:36 PM, vrotaru.md@gmail.com wrote:
> 
> You need not just X, but also Xlib development headers to be installed.
> 
> At least, that's the case on linux
> 


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Caml-list] why does "opam install graphics" fail?
  2018-02-14 18:39                     ` Tim Leonard
@ 2018-02-14 19:24                       ` vrotaru.md
  2018-02-14 19:58                         ` Tim Leonard
  0 siblings, 1 reply; 15+ messages in thread
From: vrotaru.md @ 2018-02-14 19:24 UTC (permalink / raw)
  To: Tim Leonard; +Cc: caml-list

[-- Attachment #1: Type: text/plain, Size: 587 bytes --]

Well, since I have no experience with Macs I can only guess, but the basic
workflow is the following:

The configure.sh script tries to find the "X11/Xlib.h" file and to compile
and link a simple C program using the X headers and libs. If this fails it
assumes that X is not installed and does not build the "Graphics" module.

That's the bare-bones version, but as I said, I have no experience with
Macs:

That's what a quick search have provided me with:
https://stackoverflow.com/questions/14321038/x11-xlib-h-no-such-file-or-directory-on-mac-os-x-mountain-lion

-- 
   Vasile Rotaru

[-- Attachment #2: Type: text/html, Size: 932 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Caml-list] why does "opam install graphics" fail?
  2018-02-14 19:24                       ` vrotaru.md
@ 2018-02-14 19:58                         ` Tim Leonard
  0 siblings, 0 replies; 15+ messages in thread
From: Tim Leonard @ 2018-02-14 19:58 UTC (permalink / raw)
  To: caml-list; +Cc: vrotaru.md

[-- Attachment #1: Type: text/plain, Size: 882 bytes --]

I’ve got Xlib.h in /opt/X11/include/X11/ so I’d guess that’s not the problem.


> On Feb 14, 2018, at 2:24 PM, vrotaru.md@gmail.com wrote:
> 
> Well, since I have no experience with Macs I can only guess, but the basic workflow is the following:
> 
> The configure.sh script tries to find the "X11/Xlib.h" file and to compile and link a simple C program using the X headers and libs. If this fails it assumes that X is not installed and does not build the "Graphics" module.
> 
> That's the bare-bones version, but as I said, I have no experience with Macs:
> 
> That's what a quick search have provided me with: https://stackoverflow.com/questions/14321038/x11-xlib-h-no-such-file-or-directory-on-mac-os-x-mountain-lion <https://stackoverflow.com/questions/14321038/x11-xlib-h-no-such-file-or-directory-on-mac-os-x-mountain-lion>
> 
> -- 
>    Vasile Rotaru


[-- Attachment #2: Type: text/html, Size: 1643 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2018-02-14 19:58 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <F5976597-B82E-4D1A-BF50-11C3FD9BE3E1@TimLeonard.us>
2018-02-14  4:53 ` [Caml-list] why does "opam install graphics" fail? 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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).