Instalando o lablgtk no Linux

0

Oi eu estou executando o Linux Mint 18.2 e estou tentando instalar o lablgtk para Ocaml (4.05.0). No README, o findlib 1.2.1 é necessário, então eu tentei instalar isso.

Quando tento /. / configure para findlib recebo duas mensagens:

labltk: not present

camlp4: not present

Então eu baixei o camlp4 e tentei baixar o labltk. Quando tentei o ./configure para o labltk recebi a mensagem:

Configuring LablTk... runtest: gcc -O2 -fno-strict-aliasing -fwrapv

-D_FILE_OFFSET_BITS=64 -D_REENTRANT -o tst not found tclversion.c -lm -ldl

gcc: error: not: No such file or directory

gcc: error: found: No such file or directory

runtest: gcc -O2 -fno-strict-aliasing -fwrapv

-D_FILE_OFFSET_BITS=64 -D_REENTRANT -o tst -I/usr/local/include not found tclversion.c -lm -ldl

gcc: error: not: No such file or directory

gcc: error: found: No such file or directory

runtest: gcc -O2 -fno-strict-aliasing -fwrapv -D_FILE_OFFSET_BITS=64 -D_REENTRANT -o tst -I/opt/local/include not found tclversion.c -lm -ldl

gcc: error: not: No such file or directory gcc: error: found: No such file or directory

runtest: gcc -O2 -fno-strict-aliasing -fwrapv -D_FILE_OFFSET_BITS=64 -D_REENTRANT -o tst -I/sw/include not found tclversion.c -lm -ldl

gcc: error: not: No such file or directory

gcc: error: found: No such file or directory

runtest: gcc -O2 -fno-strict-aliasing -fwrapv -D_FILE_OFFSET_BITS=64 -D_REENTRANT -o tst -I/usr/pkg/include not found tclversion.c -lm -ldl gcc: error: not: No such file or directory gcc: error: found: No such file or directory runtest: gcc -O2 -fno-strict-aliasing -fwrapv -D_FILE_OFFSET_BITS=64 -D_REENTRANT -o tst -I/usr/include not found tclversion.c -lm -ldl gcc: error: not: No such file or directory gcc: error: found: No such file or directory runtest: gcc -O2 -fno-strict-aliasing -fwrapv -D_FILE_OFFSET_BITS=64 -D_REENTRANT -o tst -I/usr/local/include/tcl8.6 -I/usr/local/include/tk8.6 not found tclversion.c -lm -ldl gcc: error: not: No such file or directory gcc: error: found: No such file or directory runtest: gcc -O2 -fno-strict-aliasing -fwrapv -D_FILE_OFFSET_BITS=64 -D_REENTRANT -o tst -I/usr/include/tcl8.6 -I/usr/include/tk8.6 not found tclversion.c -lm -ldl gcc: error: not: No such file or directory gcc: error: found: No such file or directory runtest: gcc -O2 -fno-strict-aliasing -fwrapv -D_FILE_OFFSET_BITS=64 -D_REENTRANT -o tst -I/usr/local/include/tcl8.5 -I/usr/local/include/tk8.5 not found tclversion.c -lm -ldl gcc: error: not: No such file or directory gcc: error: found: No such file or directory runtest: gcc -O2 -fno-strict-aliasing -fwrapv -D_FILE_OFFSET_BITS=64 -D_REENTRANT -o tst -I/usr/include/tcl8.5 -I/usr/include/tk8.5 not found tclversion.c -lm -ldl gcc: error: not: No such file or directory gcc: error: found: No such file or directory runtest: gcc -O2 -fno-strict-aliasing -fwrapv -D_FILE_OFFSET_BITS=64 -D_REENTRANT -o tst -I/usr/local/include/tcl8.4 -I/usr/local/include/tk8.4 not found tclversion.c -lm -ldl gcc: error: not: No such file or directory gcc: error: found: No such file or directory runtest: gcc -O2 -fno-strict-aliasing -fwrapv -D_FILE_OFFSET_BITS=64 -D_REENTRANT -o tst -I/usr/include/tcl8.4 -I/usr/include/tk8.4 not found tclversion.c -lm -ldl gcc: error: not: No such file or directory gcc: error: found: No such file or directory runtest: gcc -O2 -fno-strict-aliasing -fwrapv -D_FILE_OFFSET_BITS=64 -D_REENTRANT -o tst -I/usr/local/include/tcl8.3 -I/usr/local/include/tk8.3 not found tclversion.c -lm -ldl gcc: error: not: No such file or directory gcc: error: found: No such file or directory runtest: gcc -O2 -fno-strict-aliasing -fwrapv -D_FILE_OFFSET_BITS=64 -D_REENTRANT -o tst -I/usr/include/tcl8.3 -I/usr/include/tk8.3 not found tclversion.c -lm -ldl gcc: error: not: No such file or directory gcc: error: found: No such file or directory runtest: gcc -O2 -fno-strict-aliasing -fwrapv -D_FILE_OFFSET_BITS=64 -D_REENTRANT -o tst -I/usr/local/include/tcl8.2 -I/usr/local/include/tk8.2 not found tclversion.c -lm -ldl gcc: error: not: No such file or directory gcc: error: found: No such file or directory runtest: gcc -O2 -fno-strict-aliasing -fwrapv -D_FILE_OFFSET_BITS=64 -D_REENTRANT -o tst -I/usr/include/tcl8.2 -I/usr/include/tk8.2 not found tclversion.c -lm -ldl

gcc: error: not: No such file or directory

gcc: error: found: No such file or directory

tcl.h and/or tk.h not found.

** Configuration summary **

The "labltk" library: not supported

Eu verifiquei meu gerenciador de pacotes e tenho o tcl, tk, tcl-dev e o tk-dev 8.6.0 + 9 instalados.

Eu realmente não sei o que tentar em seguida, mas preciso da interface Gtk para Ocaml. Qualquer ajuda é apreciada. Obrigado!

    
por Katy Lin 03.12.2017 / 19:56

1 resposta

0

Você precisa descobrir o que está gerando o "não encontrado" que está se interpolando nas linhas de comando que o configure está gerando - será mais uma falta de dependência.

Já tentou usar as versões de pacote de distribuição de tudo isso? Eles devem ter todos os problemas resolvidos. O Mint tem pacotes que parecem ser aplicáveis, por exemplo (não tenho certeza exatamente do que você está procurando):

p   liblablgtk2-ocaml               - runtime libraries for OCaml bindings for G
p   liblabltk-ocaml                 - OCaml bindings to Tcl/Tk (runtime librarie

e assim por diante.

    
por 03.12.2017 / 20:46