Tcl / Tk não está sendo instalado corretamente no meu computador

1

No momento, estou tentando instalar o xgrafix no site da PTSG. Executando o configure dentro de pastas do xgrafix Estou com um problema. Está afirmando que devo ter certeza que o Tcl / Tk está instalado corretamente e execute novamente o configure. Eu tentei remover e reinstalar o Tcl e o Tk sem ter qualquer sorte.

Além disso, tentei usar diferentes versões do Tcl / Tk no caso de não ser compatível com a atualização mais recente. Eu sou um iniciante no uso do Linux, então se você tiver alguma dica sobre como consertá-lo, isso seria muito apreciado.

configuring with options: --prefix=/usr/local --with-SCALAR=double --enable-fulloptimize --with-XGRAFIX-lib=/usr/local/lib --with-XGRAFIX-include=/usr/local/include 
configure: WARNING: unrecognized options: --with-XGRAFIX-lib, --with-XGRAFIX-include
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
Using C++ compiler g++
Using C compiler gcc
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for library containing strerror... none required
checking whether time.h and sys/time.h may both be included... yes
checking for BSD-compatible nm... 
/usr/bin/nm -B
Setting the flags per system and C++ compiler: g++
checking for g++... /usr/bin/g++
Serial C++ compiler is 'g++'
checking g++ version... g++
configure: WARNING: Caution: version  is not known to work.
configure: WARNING: C++ compiler may generate code for this processor only.
checking for -fsquangle... no
checking how to build libraries... with ar cr  
checking for gcc... /usr/bin/gcc
Serial C compiler is 'gcc'
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C preprocessor... gcc -E
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking whether c++ compiler supports exception handling... yes
checking whether c++ compiler supports typename... yes
checking whether c++ compiler can explicitly instantiate templates... yes
checking whether c++ compiler supports RTTI... yes
checking whether c++ compiler supports namespaces... yes
checking whether c++ compiler has complex in the namespace std... yes
checking whether c++ compiler has streams in the namespace std... yes
checking whether c++ compiler can overload const type conversions... yes
checking whether c++ compiler knows mutable... yes
checking whether template friends need brackets... yes
checking whether nontype template operators are allowed... no
checking whether static variables can be declared generally... yes
configure: WARNING: Fortran libraries will be invalid.
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
checking for ranlib... ranlib
checking what the library suffix is... .a
checking how to install libraries... with ${INSTALL} -m 644
configure: WARNING: x11.m4 is obsolete.  Please use AC_PATH_X or AC_PATH_XTRA.
checking for X11/Xlib.h... /usr/include/X11/Xlib.h
checking for libX11.a... /usr/lib/x86_64-linux-gnu/libX11.a
checking for libXpm.a... /usr/lib/x86_64-linux-gnu/libXpm.a
checking for tclsh... /usr/bin/tclsh
checking for tclConfig.sh... /usr/lib/x86_64-linux-gnu/tclConfig.sh
checking for tkConfig.sh... /usr/lib/x86_64-linux-gnu/tkConfig.sh
checking for libtcl8.6.a... no
checking for libtcl8.6.so... no
configure: error: Make sure Tcl/Tk are installed correctly on your
 system and then rerun configure.
    
por cgnick 27.05.2015 / 03:46

3 respostas

0

Parece que o script de configuração fornecido é incompatível com os sistemas atuais. A execução de autoconf para gerar um novo script aparece para corrigir os erros do Tcl / Tk, mas apresenta outros erros relacionados a inclusões e bibliotecas do X11.

Eu finalmente consegui fazer com que ./configure fosse concluído começando de novo com um tarball recém-descompactado e definindo TCL_LIBDIR_PATH e TK_LIBDIR_PATH explícito na linha de comando ./configure :

TCL_LIBDIR_PATH=/usr/lib/x86_64-linux-gnu/ \
TK_LIBDIR_PATH=/usr/lib/x86_64-linux-gnu/ \
./configure --with-tclsh=/usr/bin/tclsh8.5 \
--with-tclconfig=/usr/lib/tcl8.5 \
--with-tkconfig=/usr/lib/tk8.5

No entanto, apesar de 8.5 estar listado como um dos legal_tcl_versions , o make falha com um erro relacionado ao Tcl

xgsetup.c: In function ‘XGSetupWindow’:
xgsetup.c:145:14: error: ‘Tcl_Interp’ has no member named ‘result’
     if(interp->result != NULL) {
              ^
xgsetup.c:146:27: error: ‘Tcl_Interp’ has no member named ‘result’
       printf("%s\n",interp->result);
                           ^

Seguindo DICA # 330: Elimine o resultado interp > dos cabeçalhos públicos , você pode conseguir contornar isso passando o sinalizador -DUSE_INTERP_RESULT na linha de comando make :

make CPPFLAGS="-DUSE_INTERP_RESULT"

o pacote parece ter sido criado com sucesso, mas eu não instalei nem testei.

    
por steeldriver 07.06.2015 / 16:57
0

Eu usei a solução pelo steeldriver, mas também tive que adicionar ABS_XLIB_H_PATH = / usr / include e ABS_X11LIB_PATH = / usr / include para resolver o X11 sem erro de diretório (/ usr / include deve ser substituído pelo caminho onde o X11 está localizado, se não estiver em / usr / include).

    TCL_LIBDIR_PATH=/usr/lib/x86_64-linux-gnu/ 
    TK_LIBDIR_PATH=/usr/lib/x86_64-linux-gnu/ 
    ABS_XLIB_H_PATH=/usr/include ABS_X11LIB_PATH=/usr/include
    ./configure --with-tclsh=/usr/bin/tclsh8.5 
    --with-tclconfig=/usr/lib/tcl8.5 
    --with-tkconfig=/usr/lib/tk8.5

E lembre-se de executar o make com os flaggs sugeridos:

    make CPPFLAGS="-DUSE_INTERP_RESULT"

Eu tenho alguns erros para a libpng não encontrada, provavelmente porque a libpng é lib12png. Isso não era vital para fazer o build funcionar e eu acho que pode ser corrigido substituindo libpng por lib12png em algum lugar no arquivo configure. Além disso, é provável que também tenhamos que adicionar o caminho correto usando o parâmetro apropriado que também deve ser possível encontrar no arquivo de configuração e que é então feito com "some_path_indetifier_for_lib12png" = / path / to / lib12png /.

    
por Jakob 05.09.2015 / 14:49
-1

O erro é executado aqui:

% bl0ck_qu0te%

Isso indica que o pacote **libtcl8.6** não está instalado no seu sistema, você pode instalá-lo no seu sistema:

sudo apt-get install tcl8.6
    
por Maythux 27.05.2015 / 08:47