Archive for noviembre 2011

h1

GTK+ 2 not found: error de dependencias al compilar en Linux

13/11/2011

Revisión técnica (octubre de 2026): GTK+ 2 es una tecnología antigua. Comprueba qué versión necesita el software y qué paquetes de desarrollo ofrece tu distribución. La presencia de pkg-config no implica que existan las bibliotecas y cabeceras correctas. Para proyectos nuevos prioriza dependencias mantenidas.

Se conserva a continuación la solución histórica original.


Si compilando un software, por ejemplo aMule, ocurre este error:

checking for GTK+ - version >= 2.0.0... no
*** A new enough version of pkg-config was not found.
*** See http://pkgconfig.sourceforge.net
configure: error:
The development files for GTK+ were not found. For GTK+ 2, please
ensure that pkg-config is in the path and that gtk+-2.0.pc is
installed. For GTK+ 1.2 please check that gtk-config is in the path,
and that the version is 1.2.3 or above. Also check that the
libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
--libs' are in the LD_LIBRARY_PATH or equivalent.

en vez de descargar las librerías y compilarlas, se puede descargar el siguiente paquete:

sudo apt-get install libgtk2.0-dev