Welcome

Troves being gleaned while surfing on the Internet mostly about computer/IT/system skills and tricks, Welcome here ...
Powered By Blogger

Disclaimer

This blog is written by the owner with real practices and tests and intended to hold all original posts except there is a clear declaration for referencing from others. Thanks for tagging with the source link or other tips for reference from here if you would like to quote partial or full text from posts in this blog.

Tuesday, December 28, 2010

Can not find the pango library or version is lower than required

Another prerequisite for GTK+, which might be complaining the lower version than required or simply loss of it:

1. check the current version
pkg-config --modversion pango

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

2. try to locate the .pc file
locate pango.pc
/usr/local/lib/pkgconfig/pango.pc

3. add the containing path into PKG_CONFIG_PATH
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig

4. check it again
pkg-config --modversion pango
1.28.3

done!


or if failed at locating the .pc, just download the source package from http://www.gtk.org/download-linux.html :
./configure --prefix=$path_you_like  && make && make install

then simply follow the similar steps above in the event of newborn problems

No comments: