LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   problem with glib pkg conf :(:(:( (https://www.linuxquestions.org/questions/linux-software-2/problem-with-glib-pkg-conf-387326/)

wojtix 11-28-2005 02:19 PM

problem with glib pkg conf :(:(:(
 
hi i'm using debian and i wanted to install xmms and i'm a newbie, now i'm instaling gtk and i have an error:
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for BASE_DEPENDENCIES_CFLAGS...
checking for BASE_DEPENDENCIES_LIBS...
configure: error: Package requirements (glib-2.0 >= 2.7.1 atk >= 1.0.1 pango >= 1.9.0 cairo >= 0.9.2) were not met.
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively you may set the BASE_DEPENDENCIES_CFLAGS and BASE_DEPENDENCIES_LIBS environment variables
to avoid the need to call pkg-config. See the pkg-config man page for
more details.


i've installed glib 2.9 and pkg conf i think :( please help

MColm 11-28-2005 10:35 PM

I'm just a newbie myself, but let me try to quickly address this since I have recently been messing with the same problem. furthermore, in many message boards, numerous other newbies have experienced this exact same problem and their pleas often go un-answered. I actually saw your post while searching for the replies to my original one a few days ago.

(in case it may be helpful to you, search for a threat titled "Quest to install gxine (and learn something too)" or some such similar title)

with much thanks to Andrew, what i ended up doing is setting the following global variables:
Code:

PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
LDFLAGS=-L/usr/local/lib
CPPFLAGS=-I/usr/local/include
LD_CONFIG_PATH=/usr/local/lib
export PKG_CONFIG_PATH LDFLAGS CPPFLAGS LD_CONFIG_PATH

yours may have to change according to your particular setup.

then I ran /usr/ldconfig just for good measure, and voila the next ./configure attempt worked.

in the grand tradition of newbie-ism, i tried much that did NOT work:
1. copying the new glib-2.0.so.0.800.0 library into /usr/lib then running ldconfig (this just messed up everything else that used glib-2.0.so.0.200.1)
2. uninstalling the old version of glib via rpm (apparently did nothing)
3. moving the glib-2.0.pc file around (the PKG_CONFIG_PATH is all you need)

The bottom line, as far as I could figure, is that the glib installation process put the files under the /usr/local branch of the file structure, but pkg-config won't look there unless you set it's global variable. (poke around good in /usr/local/lib/pkgconfig, and you'll see what i mean) the other 3 flags then direct the next configure script you run to use the glib libraries that you just recently installed. (as opposed to any that came installed with your distribution, which it pkg-config can't find anyway.) if you forget to set the last three variables, or maybe just the last one, I bet you'll see something like this: pkg_config reports that the new version of glib 2.9 is installed, but the library in use is an old one like 2.2.1. do some research on ld.so.conf if you want to learn more why this is.

please let me know if this helps. (feel free to PM) working on this was a great learning experience, though in the long run i may just have confused myself more. :D


All times are GMT -5. The time now is 08:37 AM.