LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-24-2004, 08:04 AM   #1
ninja
LQ Newbie
 
Registered: Apr 2003
Distribution: Fedora Core 3
Posts: 15

Rep: Reputation: 0
Question about Glib Library


Hello

I am compiling a source code which needs Glib library. When I do ./configure the following error message is produced.

checking for glib-config... no
checking for GLIB - version >= 1.2.0... 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: require glib

I actually can't find the glib-config scipt.

However, I found a lot of libraries which I believe they are glib library files ( Newbie's language)


/usr/include/glib-2.0
/usr/include/glib-2.0/gmodule.h
/usr/include/glib-2.0/glib
/usr/include/glib-2.0/glib/gprimes.h
/usr/include/glib-2.0/glib/gutils.h
/usr/include/glib-2.0/glib/gunicode.h
/usr/include/glib-2.0/glib/gnode.h
/usr/include/glib-2.0/glib/gcache.h
/usr/include/glib-2.0/glib/gdataset.h
/usr/include/glib-2.0/glib/gbacktrace.h
/usr/include/glib-2.0/glib/grel.h
/usr/include/glib-2.0/glib/gfileutils.h
/usr/include/glib-2.0/glib/gthread.h
/usr/include/glib-2.0/glib/gmessages.h
/usr/include/glib-2.0/glib/gatomic.h
/usr/include/glib-2.0/glib/gmarkup.h
/usr/include/glib-2.0/glib/gwin32.h
/usr/include/glib-2.0/glib/gerror.h
/usr/include/glib-2.0/glib/grand.h
/usr/include/glib-2.0/glib/gmem.h
/usr/include/glib-2.0/glib/gspawn.h
/usr/include/glib-2.0/glib/gqueue.h
/usr/include/glib-2.0/glib/gpattern.h
/usr/include/glib-2.0/glib/gi18n.h
/usr/include/glib-2.0/glib/galloca.h
/usr/include/glib-2.0/glib/gcompletion.h
/usr/include/glib-2.0/glib/gtimer.h
/usr/include/glib-2.0/glib/gstrfuncs.h
/usr/include/glib-2.0/glib/gshell.h
/usr/include/glib-2.0/glib/gscanner.h
/usr/include/glib-2.0/glib/gprintf.h
/usr/include/glib-2.0/glib/ghook.h
/usr/include/glib-2.0/glib/gslist.h
/usr/include/glib-2.0/glib/gmain.h
/usr/include/glib-2.0/glib/gqsort.h
/usr/include/glib-2.0/glib/gconvert.h
/usr/include/glib-2.0/glib/gstring.h
/usr/include/glib-2.0/glib/gmacros.h
/usr/include/glib-2.0/glib/gtree.h
/usr/include/glib-2.0/glib/gtypes.h
/usr/include/glib-2.0/glib/garray.h
/usr/include/glib-2.0/glib/gasyncqueue.h
/usr/include/glib-2.0/glib/gquark.h
/usr/include/glib-2.0/glib/gdate.h
/usr/include/glib-2.0/glib/glist.h
/usr/include/glib-2.0/glib/giochannel.h
/usr/include/glib-2.0/glib/ghash.h
/usr/include/glib-2.0/glib/gdir.h
/usr/include/glib-2.0/glib/gi18n-lib.h
/usr/include/glib-2.0/glib/gthreadpool.h
/usr/include/glib-2.0/glib
/usr/include/glib-2.0/glib-object.h
/usr/include/glib-2.0/gobject
/usr/include/glib-2.0/gobject/gtypeplugin.h
/usr/include/glib-2.0/gobject/gclosure.h
/usr/include/glib-2.0/gobject/gvaluearray.h
/usr/include/glib-2.0/gobject/gvaluetypes.h
/usr/include/glib-2.0/gobject/gobject.h
/usr/include/glib-2.0/gobject/gvalue.h
/usr/include/glib-2.0/gobject/genums.h
/usr/include/glib-2.0/gobject/gtypemodule.h
/usr/include/glib-2.0/gobject/gvaluecollector.h
/usr/include/glib-2.0/gobject/gboxed.h
/usr/include/glib-2.0/gobject/gsignal.h
/usr/include/glib-2.0/gobject/gsourceclosure.h
/usr/include/glib-2.0/gobject/gparamspecs.h
/usr/include/glib-2.0/gobject/gobjectnotifyqueue.c
/usr/include/glib-2.0/gobject/gparam.h
/usr/include/glib-2.0/gobject/gtype.h
/usr/include/glib-2.0/gobject/gmarshal.h
/usr/include/glib-2.0/gobject
/usr/include/glib-2.0/glib.h
/usr/include/glib-2.0

/usr/lib/libglib-1.2.so.0.0.10
/usr/lib/libglib-1.2.so.0


Can anyone tell me what's going on?

Thanks
 
Old 11-24-2004, 08:15 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
From googling around, it looks like glib-config was changed to pkg-config at some stage, so you may be trying to compile something against a version of glib that it wasn't written for.

Also, I'd check the versions of your glib package against your glib-devel; you seem to have version 1.2 libraries with version 2.0 headers (which won't work, but it could just be a weird naming thing).
 
Old 11-24-2004, 08:21 AM   #3
madluther
Member
 
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 31
There are two versions of glib, 1.x and 2.x. Its quite ok to have both installed. From the above post it looks like you have the development libs for 2.0 but not for 1.2.
 
Old 11-24-2004, 11:06 AM   #4
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
Quote:
Originally posted by madluther
There are two versions of glib, 1.x and 2.x. Its quite ok to have both installed. From the above post it looks like you have the development libs for 2.0 but not for 1.2.
yea that's it
glib1 and glib2 are designed so both can live on your system cause lots of apps still need the old one
 
  


Reply



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
Glib library install older than 2.2 ?? BajaNick Linux - General 2 06-24-2004 12:07 PM
problems upgrading glib library linux-singapore Linux - Software 0 01-13-2004 08:00 PM
Question about GLIB 1.2.2 Inexactitude Linux - Newbie 1 10-18-2003 05:09 PM
glib question iceman47 Linux From Scratch 4 03-08-2003 06:52 PM
glib library moger Slackware 4 12-09-2002 07:29 AM

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

All times are GMT -5. The time now is 04:44 AM.

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