1,安装软件包报错:
>>> 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
2、原因:
$ 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
$
3、 解决办法:
apt-get install libglib2.0-dev