LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 11-28-2005, 03:19 PM   #1
wojtix
LQ Newbie
 
Registered: Nov 2005
Location: Wroclaw
Distribution: Debian
Posts: 5

Rep: Reputation: 0
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
 
Old 11-28-2005, 11:35 PM   #2
MColm
LQ Newbie
 
Registered: Nov 2005
Distribution: RedHat 9.0
Posts: 4

Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to install ethereal, I get the error: 'pkg-config --modversion glib-2.0' retur abefroman Linux - Security 5 07-09-2007 12:09 PM
pkg-config and glib: Uninstalling Old and Installing New CooManChu Linux - Software 6 09-06-2005 04:35 PM
building kde... glib, pkg-tool wtf? miko3k Linux - Software 2 06-21-2005 11:34 AM
glib 2.6.0 will not create pc files in pkg folder humble20 Linux - Newbie 6 01-04-2005 09:37 AM
Installing Glib, ATK, GTK, Pkg Config, and Pango! LinuZ Linux - Newbie 9 10-26-2003 03:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration