当前位置: 技术问答>linux和unix
GTK2.0安装的问题???
来源: 互联网 发布时间:2015-04-18
本文导语: 编译安装,版本监测时出的问题: checking for glib-2.0 >= 2.1.4 atk >= 1.0.1 pango >= 1.0.1... 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...
编译安装,版本监测时出的问题:
checking for glib-2.0 >= 2.1.4 atk >= 1.0.1 pango >= 1.0.1... 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
configure: error: Library requirements (glib-2.0 >= 2.1.4 atk >= 1.0.1 pango >=
1.0.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
版本都满足,可是就error。请高手关注。谢谢。。
checking for glib-2.0 >= 2.1.4 atk >= 1.0.1 pango >= 1.0.1... 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
configure: error: Library requirements (glib-2.0 >= 2.1.4 atk >= 1.0.1 pango >=
1.0.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
版本都满足,可是就error。请高手关注。谢谢。。
|
将glib-2.0.pc拷贝到/usr/lib/pkgconfig目录下,然后打入命令pkg-config glib-2.0 --modversion,如果输出了glib的版本号就可以安装了。不知你装的是gtk2.0还是gtkmm2.0。安装完后用命令gtk-config --cflags --libs可以看到gtk2。0的信息了