[GUFSC] Problemas ao instalar o Gimp
Andre Luis Gobbi Sanches
gobbi em lisha.ufsc.br
Terça Janeiro 13 16:02:04 BRST 2004
Olá Rafael,
caso queira compilar o GIMP (1.3+), você precisa configurar o
pkg-config para que ele encontre os seus arquivos .pc (descrição de
bibliotecas). Todos os programas baseados em GTK+/GNOME2 exigem isso.
Digite:
export PKG_CONFIG_PATH=<caminho>
geralmente o caminho inclui /usr/local/lib/pkg-config, mas para
ter certeza faça uma pesquisa no seu disco por arquivos .pc, e inclua
todos os diretórios que tiverem este tipo de arquivo (relacionados ao
pkg-config, naturalmente). Se quiser procurar especificamente pelo
gtk+-2.0.pc, digite:
updatedb
locate "gtk+-2.0.pc"
e inclua a localização na variável PKG_CONFIG_PATH. Recomendo que
a defina em um script de ambiente. Isso deve resolver o problema.
On Sun, 11 Jan 2004, Rafael B wrote:
> Pessoal, estou tendo problemas ao tentar instalar o gimp. Peguei o arquivo tar.gz, descompactei, e ao rodar o ./configure, no final aparece a mensagem:
>
> checking for pkg-config... (cached) /usr/bin/pkg-config
> checking for GTK+ - version >= 2.2.2... no
> *** Could not run GTK+ test program, checking why...
> *** The test program failed to compile or link. See the file config.log for th e
> *** exact error that occured. This usually means GTK+ is incorrectly installed .
> configure: error: Test for GTK+ failed. See the file 'INSTALL' for help.
> [root em localhost gimp-1.3.23]# ./configurecd '/home/italiano/gimp-1.3.23'
> bash: ./configurecd: No such file or directory
>
> O estranho é que tenho o gtk 2.2.2 com essa versão instalado.
> Aí então vou no config.log gerado e não entendo nada. Vou no arquivo Install que contém as instruções de intalação e lá diz o seguinte sobre o erro:
>
> configure' uses pkg-config, a tool that replaces the old foo-config
> scripts. The most recent version is available from
> http://www.freedesktop.org/software/pkgconfig/
>
> 'configure' tries to compile and run a short GTK+ program. There are
> several reasons why this might fail:
>
> * pkg-config could not find the file 'gtk+-2.0.pc' that gets installed
> with GTK. (This file is used to get information about where GTK+ is
> installed.)
>
> Fix: Either make sure that this file is in the path where pkg-config
> looks for it (try 'pkg-config --debug' or add the location of
> gtk+-2.0.pc to the environment variable PKG_CONFIG_PATH before running
> configure.
>
> * The GTK+ libraries were not found at run time. The details
> of how to fix this problem will depend on the system:
>
> Fix: On Linux and other systems using ELF libraries, add the
> directory to /etc/ld.so.conf or to the environment variable
> LD_LIBRARY_PATH, and run 'ldconfig'.
>
> On other systems, it may be necessary to encode this path
> into the executable, by setting the LDFLAGS environment variable
> before running configure. For example:
>
> LDFLAGS="-R/home/joe/lib" ./configure
> or
> LDFLAGS="-Wl,-rpath -Wl,/home/joe/lib" ./configure
>
> Não entendi o que fazer para corrigir o erro. Como saber se meu sistema usa “ELF libraries”? EU vi que tenho o arquivo ld.so.conf. Tb estou baixando o pkgconfig pra ver se o problema é ele. Gostaria de pedir esclarecimentos sobre o que fazer pra ter esse bendito gimp rodando.
> Agradeço a atenção
> Rafael
>
Mais detalhes sobre a lista de discussão GUFSC