MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
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.
I'm attempting to install GTK 2.4.0, but I get the following error when I run ./configure for it.
checking for glib-2.0 >= 2.4.0 atk >= 1.0.1 pango >= 1.4.0... Requested 'glib-2.0 >= 2.4.0' but version of GLib is 2.2.3
configure: error: Library requirements (glib-2.0 >= 2.4.0 atk >= 1.0.1 pango >= 1.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
I downloaded and installed GLib 2.4.6, so what do I need to do now? What is the PKG_CONFIG_PATH environment variable that it mentions?
Originally posted by slyman Download and install atk and pango.
I don't see why I'd need to do this. The versions I have are current enough to work. How do I get GTK to see the newer version of GLib that I've installed?
I would also suggest you put this in /etc/profile so the PKG_CONFIG_PATH is set in every shell. Just edit /etc/profile with a text editor (vi, vim, nano etc) and add the line:
I'm having quite the same problem. PKG_CONFIG_PATH is defined, I installed glib-2.4.6 moments before, and indeed glib-2.0.pc is in both /usr/lib/pkgconfig and /usr/local/lib/config. However, the one in /usr... cats "Version: 2.2.3" while the one in /usr/local... cats "Version: 2.4.6".
Three things I thought of that I could try:
./configure --prefix=/usr # Do this, then make and make install, to glib-2.4.6 to reinstall
OR
cp /usr/local/lib/pkgconfig/glib-2.0.pc /usr/lib/pkgconfig/glib-2.0.pc # Write over the old pc
OR
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:/usr/lib/pkgconfig"
# This switches the path order I have now
Originally posted by slyman To see it, you can either (the dollar at the begining $ is the prompt i.e. do not type the $. When # is used it means that you must be root).
Code:
$ set
Which will give you a list of all the variables.
Or
Code:
$ echo $PKG_CONFIG_PATH
Which will display just the PKG_CONFIG_PATH variable.
To set it use:
Code:
$ export PKG_CONFIG_PATH="..."
where ... = the path you want. Each entry in the path is seperated by a : (colon).
I would also suggest you put this in /etc/profile so the PKG_CONFIG_PATH is set in every shell. Just edit /etc/profile with a text editor (vi, vim, nano etc) and add the line:
Code:
export PKG_CONFIG_PATH="..."
(where ... = the path you want).
I tried doing what you suggested, but I still receive the exact same error. I didn't have a PKG_CONFIG_PATH variable, so I created one as you said. Even after doing this, I still had the problem. Is there not some easier way to get GLib 2.4.6 recognized?
Ok, I had made a mistake previously. I did not have ATK or Pango either. I downloaded ATK and installed it with no problems. However, I downloaed Pango 1.4.1 and I can't get it to complete the ./configure run because it says I don't have a version of glib that it wants. The version it's looking for is 2.4.0 and I have 2.4.6 installed. Is it a problem that I have a newer version than what it wants installed? And if not, what do I need to do so I can get Pango installed and subsequently finish installing my other things?
Here's what I get when I run ./configure. I left off some of the earlier stuff. I can post it too if it'd be helpful.
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for pkg-config... /usr/bin/pkg-config
checking for fontconfig >= 1.0.1... yes
checking FONTCONFIG_CFLAGS...
checking FONTCONFIG_LIBS... -lfontconfig
checking for freetype-config... /usr/bin/freetype-config
checking for FT_Get_Next_Char in -lfreetype... yes
checking for xft >= 2.0.0... yes
checking XFT_CFLAGS... -I/usr/X11R6/include -I/usr/include/freetype2
checking XFT_LIBS... -L/usr/X11R6/lib -lXft -lX11 -lfreetype -lXrender -lfontconfig
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GLIB - version >= 2.4.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.
configure: error:
*** Glib 2.4.0 or better is required. The latest version of
*** Glib is always available from ftp://ftp.gtk.org/.
i would expect you are probably getting a check output more like
Code:
kermit root # pkg-config glibpants-2.0 --modversion
Package glibpants-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glibpants-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glibpants-2.0' found
in which case install the -devel rpm for glib-2.0.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.