LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Pkg_config_path (https://www.linuxquestions.org/questions/slackware-14/pkg_config_path-435650/)

Froboi 04-16-2006 08:52 AM

Pkg_config_path
 
Ok i read other post about this but when i tried the PKG_CONFIG_PATH=(where the file is)
it did not work for me...If anyone has any idea it would be much help

dinolinux 04-16-2006 08:59 AM

can you explain a bit more about your problem? Also, when exporting a path do:
Code:

PKG_CONFIG_PATH=/path/to/program:$PKG_CONFIG_PATH ; export PKG_CONFIG_PATH

Froboi 04-16-2006 11:24 AM

pkg-config --modversion glib-2.0' returned 2.6.6, but GLIB (2.8.6)
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
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0...
'pkg-config --modversion glib-2.0' returned 2.6.6, but GLIB (2.8.6)
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.0.0 or better is required. The latest version of
GLIB is always available from ftp://ftp.gtk.org/. If GLIB is installed
but not in the same location as pkg-config add the location of the file
glib-2.0.pc to the environment variable PKG_CONFIG_PATH.

thats what i get for an error..

tomdkat 04-16-2006 11:40 AM

Do a search on "glib-2.0.pc" on your system and see if you get multiple hits:

$ find / -name glibc-2.0.pc

You might have an outdated glibc-2.0.pc file laying around.

Peace...

potatohead 04-24-2006 10:35 PM

I got the same error when installing ATK.
The conflict came because pkg-config found a different version of glib-2.0 then the one that was loaded.
The reason was that when I installed glib-2.8.6 I hadn't removed the old one (which was at a different location).
So: check the .so in /usr/lib vs /usr/local/lib and the one referred to by glib-2.0.pc
Remove the older one and symlink to the newer one.

tomdkat 04-24-2006 10:59 PM

Quote:

Originally Posted by potatohead
Remove the older one and symlink to the newer one.

Awwwwwwwwwwww I have to disagree with you on this. He should remove the old installation and make sure the correct installation will be used.

The .pc file is only one piece of the puzzle.

Peace...


All times are GMT -5. The time now is 09:34 AM.