13

I have a strange problem when trying to install dev-lib/gobject-introspection:

>>> Emerging (1 of 9) dev-libs/gobject-introspection-1.42.0 
...... 
configure: error: Package requirements (glib-2.0 > 2.36.0) were not met: 

No package `glib-2.0` found

I have dev-libs/glib-2.42.1 installed, but there is some strange issue with pkg-config:

$ pkg-config --modversion glib-2.0 
Package glib-2.0 was not found in the pkg-config search path. 
Perhaps you should add the directory containing `glib-2.0.pc` 
to the PKG_CONFIG_PATH environment variable 
No package 'glib-2.0' found 

$ echo $PKG_CONFIG_PATH 

$

And looks like there is no glib-2.0.pc file in /usr/lib/pkgconfig . There is the file /usr/lib32/pkgconfig/glib-2.0.pc, but for previous version of glib-2.38.2

Can anybody explain to me, what can be wrong and how can fix this? I've already asked this question on the gentoo forum, but maybe I'll have better luck here.

erthalion
  • 303
  • 1
  • 3
  • 11

1 Answers1

23

An alternative answer, one that doesn't involve pulling in nearly as many unneeded packages, is:

sudo apt-get install libglib2.0-dev

Joe
  • 355
  • 2
  • 6