Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-13-2004, 07:19 PM   #1
LQ Newbie
Registered: Dec 2004
Location: UK
Distribution: Mandrake 10.1
Posts: 4

Rep: Reputation: 0
Xmms configure can't find glib

I'm new to Linux and I'm trying to get glib2.0 installed. I've spent days trying to get it to work (I'm not kidding I've just finished exams and have nothing better to do with my time) and have just urn out of ideas and places to look for them.

Basically I think it's installed, but no program dependent on it can seem to find it. The glib2.0 instillation itself went off with no error and I assume it's installed.

However whenever I run ./configure for Xmms I get the following message:

checking for GLIB - version >= 1.2.2... no
*** The glib-config script installed by GLIB could not be found
*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GLIB_CONFIG environment variable to the
*** full path to glib-config.
configure: error: *** GLIB >= 1.2.2 not installed - please install first ***

After reading up on the subject I found that this could be solved by setting my PKG_CONFIG_PATH variable to where my glib-2.0.pc file was located. So I did:

$ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

I can do this by putting it into a terminal but for some reason it doesn't work if I put it in .bashrc but no matter what method I get the same error as above. I've googled till I can't google no more and can't find the answer.

Here are the pkg-config commands and their outputs.

$ pkg-config --cflags glib-2.0
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include

$ pkg-config --libs glib-2.0
-L/usr/local/lib -lglib-2.0

I have checked these directories and there are glib files but the problem is I have NO WAY of knowing if they are the right file or what. I assume they are.

Apparently I can pass the values above to the ./configure for xmms but again I don't know how.

ANY help would be greatly appreciated as this is driving me insane.

Old 12-13-2004, 07:57 PM   #2
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
People will probably dissagree with me, but here are my views on compiling porgrams from source coce...

If you are using a Binary Distro, stick with binary installs.
if you are using a source distro, use the source luke !!!!

for example.. lets say you install X from source code,
not only will X be installed, but also the X source code is installed.

if you install X from a binary package, only x is installed, NOT the X source code.

so after installing X from a binary package, anny attempt to install a porgram that relies on X will fail, since the source code is missing... then you have to go back and install X source code seperatly from X and AGH !!! its a mess !

when i was a linux newbie, i got loads of error compiling things saying XYZ wasnt installed... when i knew it was.. and to fix it i had to go back and install XYZ-devel (SOMTHING-devel on rpm's means the source code to the binary package)

what distro did you install ????

All the major Distro's have Xmms pre-compiled and available for installing from the distro's install cd.
unless you are using a source distro like Gentoo, i would always recomend using binary packages to install things.
Old 12-13-2004, 08:35 PM   #3
LQ Newbie
Registered: Dec 2004
Location: UK
Distribution: Mandrake 10.1
Posts: 4

Original Poster
Rep: Reputation: 0
I'm using Mandrake 10.1. I believe the rpm is available for install but if possible I would like to be able to get this sorted. I'm trying to learn and although binaries may be the easy way I wouldn't feel right using them unless I could do it the hard way too. After all not everything has binaries availiable right? And ones that don't I'm getting the feeling rely heavily on this GTK....thing.

Anyway thank you for your reply but since my post I discovered something that makes me very VERY stupid in that Xmms doesn't work with glib 2.0 but rather need glib 1.x. Which means hours of fiddling with variables and other rubbish means f*#ck all. So yay.

The problem now is that I can't make glib1.0.10. The configure runs fine but the make bombs out with the following...

(I'm not sure exactly where the error starts so I just copied the last few lines)

gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -D_REENTRANT -c gstrfuncs.c -fPIC -DPIC -o .libs/gstrfuncs.lo
gstrfuncs.c: In function `g_printf_string_upper_bound':
gstrfuncs.c:870: error: syntax error before string constant
gstrfuncs.c:1037: error: syntax error before string constant
gstrfuncs.c:1080: error: syntax error before string constant
gstrfuncs.c:1111: error: syntax error before string constant
make[2]: *** [gstrfuncs.lo] Error 1
make[2]: Leaving directory `/home/scs3ljt/glib-1.2.10'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/scs3ljt/glib-1.2.10'
make: *** [all-recursive-am] Error 2

Any help appreciated as theres not a lot to search on for this.

Old 12-13-2004, 09:28 PM   #4
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
i actually knew that, sorry, i forgot to mention beep-media-player

beep-media-player is identicle to xmms, (with a different default skin)
but is compiled againsed the 2.0 glib library.


note that its somtimes called things like BMP or Beep-MP

think of beep-media-player as xmms 2
from what i understand, beep-media-player was created from XMMS source code.

as for your inability to compile Glib 1.x i wouldnt worry about it too much,
as im sure you know, its old has has been replaced with glib 2.x

Last edited by qwijibow; 12-13-2004 at 09:31 PM.


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
xmms install (needs glib>1.22), just installed glib 2.4.8 and still get error message eskiled Linux - Software 2 12-19-2005 09:12 PM
can't find GLIB installing XMMS-1.2.10... palanca Mandriva 3 07-21-2005 10:14 AM
Help!!! Can't install glib 2.4.7, because the configure script can't find pkgconfig RJARRRPCGP Linux - Newbie 3 11-22-2004 12:20 AM
Help!!! Can't install glib, because configure can't find pkgconfig RJARRRPCGP Linux - Newbie 1 11-20-2004 09:43 PM
Ardour - configure cannot find glib-config rtfondren Linux - Software 1 04-14-2004 05:29 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:13 PM.

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