Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
checking for pkg-config... (cached) /usr/local/bin/pkg-config
checking for GLIB - version >= 2.1.3...
*** 'pkg-config --modversion glib-2.0' returned 2.2.2, but GLIB (2.2.1)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error:
*** Glib 2.1.3 or better is required. The latest version of
*** Glib is always available from ftp://ftp.gtk.org/.
[jrel@localhost pango-1.2.3]$
______________________________________________________
This is the error i get when trying to ./configure pango-1.2.3, any suggestions?....
Ok update: i checked a few sites, said to export PKG_CONFIG_PATH=/usr/local/bin/pkg-config
So thats what i did, and then i ran ldconfig. And this is the new error
______________________________________________________
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GLIB - version >= 2.1.3... no
configure: error:
*** Glib 2.1.3 or better is required. The latest version of
*** Glib is always available from ftp://ftp.gtk.org/.
_______________________________________________________
from source, trying to do everything from source, so i might accually even change to slackware. Because i read some post and what not, that RPMs install in different dir, so things get confusing when trying to find each other. Personally i'd rather mess w/ the sources, its funner =D And im running mandrake 9.1 right now.
Ok, not much help, so i'll add another Q:, so this stays up on top =D. Ok, when using RPM files, if they're for RH, can i also use them for mandrake?.. Because alotta applications ive found only give RPMs listed for RH and Deb but none for mandrake.
Distribution: LFS 4.0, Windows XP, Ubuntu 10.01, Gentoo 2.6.32-r7, OpenSolaris
Posts: 100
Rep:
I'll help you keep this at the top.
I'm not sure the PKG_CONFIG_PATH you defined is correct but it wouldn't account for glib-2.0 not being found. Did you uninstalle it?
If you installed from source you should be able to do a "make uninstall" in the directory from which you built and installed the kit. If you no longer have the build directory you can try re-creating it by downloading the kit again (this is why I backup the build directory after installation). You'll have to do the ./configure and make commands again before executing the "make uninstall".
Something seems wrong though. I would have thought that installing glib-2.0 version 2.2.2 would have overwritten glib-2.0 version 2.2.1. If you haven't already done it you should uninstall both versions then re-install v2.2.2 from a new build directory.
Well, my older version of glib came w/ the install CD. So what im going to do next is try to do the RPM uninstall, and then reinstall the new version of glib, and see how the fares out. I'll keep it informed, this can be reference for anyone w/ same problem.
Hi,
Try to follow this steps :
1-If you already uninstalled the new glib, install it again.
2-rpm -e --nodeps glib-2.2.1 (the old glib)
3-export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
4-Compile pango-1.2.3
I Have the exact same problem, could you explain How to uninstall the old GLIB?.....I also have tried installing everythin, GLIB, Pango, ATK, but I get an awful error with freetype (that is requiered for fontconfig, which is also required for Pango)...
What should I do, install everything from scratch?....keep on trying this way?
When you 'say still the same problem', do you mean the error with "pkg-config --modversion glib-2.0 returned 2.2.2, but GLIB (2.2.1)
was found! etc..." or the other one with glib could not be found? Also when you erased the old rpm, did it output any thing ?
and are you sure that you set PKG_CONFIG_PATH=/usr/local/lib/pkgconfig and not /usr/local/bin/pkg-config?
I followed your instructions (removed glib rpm) and also other files such as /lib/glib/glibconfig.h as well as the gtk rpm (with the -e --nodeps option). Then I could install pango beautifully, atk, and even the newest version of glib. then I installed the latest version of gtk and found all the new dependencies!.
Of course all the apps that were linked to the old dependencies are not working now, so when trying to install the latest (gaim or ethereal for example) I keep getting the following error about gtk 2.0 not detected:
checking for GLIB - version >= 2.0.0... yes (version 2.2.0)
checking for pkg-config... (cached) /usr/local/bin/pkg-config
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ 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 GTK+ is incorrectly installed.
configure: error:
*** GTK+ 2.0 is required to build Gaim; please make sure you have the GTK+
*** development headers installed. The latest version of GTK+ is
*** always available at http://www.gtk.org/.
I did the export PKG_CONFIG_PATH=usr/local/lib/pkgconfig, and still cant get the apps to recognize GTK......
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig (notice the first slash).
Also, if you ended your session (typing exit in the command line or exiting the terminal ends the session) after you compiled gaim dependencies, you should re-export the PKG_CONFIG_PATH before compiling gaim (or you could add it in your ~/.bash_profile).
Thanks for your reply......I did the export they way it should be since the beginning, but still I get the same error. Somehow, the pkg-config file states that GTK 2.X is not installed:
checking for pkg-config... (cached) /usr/local/bin/pkg-config
checking for GTK+ - version >= 2.0.0... no
so i checked and I have different pkg-config files:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.