No package 'glib-2.0' found 问题的解决方案

11191阅读 0评论2011-06-26 frankzfz
分类:LINUX

在安装一个源码包时,出现下面一个库文件没有找到,其解决方法如下:
checking for GLIB - version >= 2.0.0... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.
checking for GLIB2... configure: error: Package requirements (
    glib-2.0 >= 2.18
) were not met:
No package 'glib-2.0' found
在Ubuntu操作系统中可以使用下面的命令进行安装:
解决方法   sudo apt-get install libglib2.0-dev
上一篇:IPv6地址的自动配置
下一篇:Vim中解决中文显示的问题