caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] how to install "labltk" via opam
@ 2016-03-16 10:07 Matej Kosik
  2016-03-16 11:33 ` Mr. Herr
  0 siblings, 1 reply; 3+ messages in thread
From: Matej Kosik @ 2016-03-16 10:07 UTC (permalink / raw)
  To: Caml List

Hi,

I would like to compile a program that requires "labltk.cmxa" which might be (I am guessing) provided by the "labltk" opam package.

So I have tried to install it like this:

	opam install labltk

The installation failed with a message:

        The following actions will be performed:
          ∗  install labltk 8.06.0

        =-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
        [labltk] Archive in cache

        =-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
        [ERROR] The compilation of labltk failed at "make all opt".
        Processing  1/1: [labltk: ocamlfind remove]
        #=== ERROR while installing labltk.8.06.0 =====================================#
        # opam-version 1.2.2 (2dee5d69c0bd29731e6cb2ee537f0adf72404ba4)
        # os           linux
        # command      make all opt
        # path         /home/me/.opam/4.02.3/build/labltk.8.06.0
        # compiler     4.02.3
        # exit-code    2
        # env-file     /home/me/.opam/4.02.3/build/labltk.8.06.0/labltk-23226-d2c37b.env
        # stdout-file  /home/me/.opam/4.02.3/build/labltk.8.06.0/labltk-23226-d2c37b.out
        # stderr-file  /home/me/.opam/4.02.3/build/labltk.8.06.0/labltk-23226-d2c37b.err
        ### stdout ###
        # [...]
        # /home/me/.opam/4.02.3/bin/ocamlc.opt -c -warn-error A-3  fileevent.mli
        # /home/me/.opam/4.02.3/bin/ocamlc.opt -c -warn-error A-3  fileevent.ml
        # /home/me/.opam/4.02.3/bin/ocamlc.opt -c -warn-error A-3  camltkwrap.mli
        # /home/me/.opam/4.02.3/bin/ocamlc.opt -c -warn-error A-3  camltkwrap.ml
        # /home/me/.opam/4.02.3/bin/ocamlc.opt -c -warn-error A-3  -I +threads -I vmthreads tkthread.mli
        # /home/me/.opam/4.02.3/bin/ocamlc.opt -c -warn-error A-3  -I +threads -I vmthreads tkthread.ml
        # gcc -O -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I/home/me/.opam/4.02.3/lib/ocaml/caml  -O -fPIC -c cltkCaml.c
        # Makefile:87: recipe for target 'cltkCaml.o' failed
        # make[1]: Leaving directory '/home/me/.opam/4.02.3/build/labltk.8.06.0/support'
        # Makefile:25: recipe for target 'all' failed
        ### stderr ###
        # cltkCaml.c:19:17: fatal error: tcl.h: No such file or directory
        #  #include <tcl.h>
        #                  ^
        # compilation terminated.
        # make[1]: *** [cltkCaml.o] Error 1
        # make: *** [all] Error 2

        =-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
        The following actions failed
          ∗  install labltk 8.06.0
        No changes have been performed

        =-=- labltk.8.06.0 troubleshooting =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
        => This package requires Tcl/Tk with its development packages installed on your system

There, I see that I need to have some "tcl.h" file.
Looking around

	 apt-file search 'tcl.h'

I see that this Debian package:

	tcl8.6-dev

provides it:

	/usr/include/tcl8.6/tcl.h

So I installed it:

	apt-get install tcl8.6-dev

Now I am trying again to install labltk via opam:

	opam install labltk

and I still get the above error message.

I ran out of my own ideas what to do so I would like to ask for advice:

If I am on Debian stable, what is the correct procedure to install "labltk" via opam?

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

end of thread, other threads:[~2016-03-16 14:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-16 10:07 [Caml-list] how to install "labltk" via opam Matej Kosik
2016-03-16 11:33 ` Mr. Herr
2016-03-16 14:47   ` Matej Kosik

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