LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-19-2005, 10:22 PM   #1
bonniehandi
LQ Newbie
 
Registered: Nov 2005
Posts: 27

Rep: Reputation: 15
glib cannot be found when installing xmms


I am installing xmms when this came up, and I cannot understand what it is saying.
I have glib installed.

*** 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 ***
 
Old 11-20-2005, 03:09 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
You need to install gtk1.x and glib1.x devel packages.
 
Old 11-20-2005, 04:11 AM   #3
NikToo
Member
 
Registered: Nov 2005
Distribution: SUSE 10
Posts: 41

Rep: Reputation: 15
What's the difference between the "devel packages" and the "regular" versions? I "installed" GLIB 2.9.0 (I think) but it won't recognize it.
 
Old 11-20-2005, 06:10 PM   #4
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
The -devel packages contain the includes files (usually C/C++ header files and the like) that you need to compile other applications that use that app. So to compile something that uses glib you need the glib-devel package.

What distro are you using? Most distros have good package management systems which avoid having to compile stuff, and almost any distro will have packages for xmms.
 
Old 11-21-2005, 03:48 AM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
gtk2.x and glib2.x are not the same as gtk (gtk1.x) and glib (glib1.x). To solve your problem you need glib1.x and gtk1.x devel packages.
 
Old 11-23-2005, 05:38 AM   #6
neogeek77
LQ Newbie
 
Registered: Nov 2005
Location: USA
Posts: 3

Rep: Reputation: 0
Got the same problem but I downloaded and installed glib1.x and gtk1.x devel packages and it worked. Thanks!
 
Old 12-04-2005, 07:07 AM   #7
landuchi
Member
 
Registered: Oct 2004
Distribution: Debian, Ubuntu
Posts: 74

Rep: Reputation: 15
I am using Devian Sarge, i am having the same problem. I downloaded glib-1.2.10 and tried to install using the steps in the INSTALL file...

% gzip -cd glib-1.2.10.tar.gz | tar xvf - # unpack the sources
% cd glib-1.2.10 # change to the toplevel directory
% ./configure # run the `configure' script
% make # build GLIB

[ Become root if necessary ]
% rm -rf /install-prefix/include/glib.h /install-prefix/include/gmodule.h
% make install # install GLIB

i get this at the end of the make command,

Code:
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
gstrfuncs.c: In function 'g_strdown':
gstrfuncs.c:1139: warning: pointer targets in assignment differ in signedness
gstrfuncs.c: In function 'g_strup':
gstrfuncs.c:1155: warning: pointer targets in assignment differ in signedness
gstrfuncs.c: In function 'g_strchug':
gstrfuncs.c:1314: warning: pointer targets in assignment differ in signedness
gstrfuncs.c:1317: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
make[2]: *** [gstrfuncs.lo] Error 1
make[2]: Leaving directory `/home/landuchi/Progs/glib-1.2.10'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/landuchi/Progs/glib-1.2.10'
make: *** [all-recursive-am] Error 2
and this at the end of the make install command

Code:
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
gstrfuncs.c: In function 'g_strdown':
gstrfuncs.c:1139: warning: pointer targets in assignment differ in signedness
gstrfuncs.c: In function 'g_strup':
gstrfuncs.c:1155: warning: pointer targets in assignment differ in signedness
gstrfuncs.c: In function 'g_strchug':
gstrfuncs.c:1314: warning: pointer targets in assignment differ in signedness
gstrfuncs.c:1317: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
make[1]: *** [gstrfuncs.lo] Error 1
make[1]: Leaving directory `/home/landuchi/Progs/glib-1.2.10'
make: *** [install-recursive] Error 1
After finishing the intalation, when i try to install xmms y get the same error, saying it needs glim 1.2.x.

What am i doing wrong ?

Last edited by landuchi; 12-04-2005 at 07:10 AM.
 
Old 12-04-2005, 06:55 PM   #8
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Quote:
I downloaded glib-1.2.10 and tried to install using the steps in the INSTALL file...
Don't download it from the project's website - you should get it using apt from the Debian discs or repositories. Trying to build important system components like this yourself just leads to problems. If you need the -devel packages then use apt to get glib-devel or whatever.

Quote:
After finishing the intalation, when i try to install xmms y get the same error, saying it needs glim 1.2.x.
You can probably get xmms using apt as well - there should be no need to compile it. If you still want to compile it you need to use apt to get all the -devel packages for whatever the xmms compilation has errors about, eg. glib.
 
Old 12-05-2005, 05:55 AM   #9
landuchi
Member
 
Registered: Oct 2004
Distribution: Debian, Ubuntu
Posts: 74

Rep: Reputation: 15
i finally installed it with the apt-get command. But i wanted to learn how to do it manually.
 
  


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
Installing xmms on FC4 -> "glib-config not found"... gletare Linux - Software 11 10-06-2006 01:32 AM
glib not found when installing xmms??????? help!!! nicdee Linux - Software 15 08-09-2005 11:13 PM
xmms, glib installing problems Kaskade Linux - Software 2 05-30-2005 06:18 PM
installing xmms (glib..atk...) nadroj Linux - Newbie 6 04-12-2005 02:41 PM
GLIB problems installing xmms 1.2.9 Dancingsalad Linux - Software 4 02-08-2004 06:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration