LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-26-2004, 10:13 PM   #1
skoivisto
LQ Newbie
 
Registered: Jul 2004
Location: USA
Distribution: Fedora Core 1
Posts: 7

Rep: Reputation: 0
gaim wants GLIB with devel headers


Trying to configure gaim 0.8.2, but I keep getting an error about GLib development headers. I have tried reinstalling GLib to no avail. Please bare in mind that I am pretty new to Linux.

Thanks!

checking for GLIB - version >= 2.0.0... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.
configure: error:
*** GLib 2.0 is required to build Gaim; please make sure you have the GLib
*** development headers installed. The latest version of GLib is
*** always available at gtk.org.
 
Old 08-26-2004, 10:41 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
most binary linux disributions divide packages in two
one to use the library at runtime and another glib-devel or something
with the developement files in it -- you have to install the devel one as well.

I will never understand this practice but as long as you use one of those prepackaged distros you will have to deal with it .
 
Old 08-27-2004, 08:06 AM   #3
skoivisto
LQ Newbie
 
Registered: Jul 2004
Location: USA
Distribution: Fedora Core 1
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by foo_bar_foo
most binary linux disributions divide packages in two
one to use the library at runtime and another glib-devel or something
with the developement files in it -- you have to install the devel one as well.

I will never understand this practice but as long as you use one of those prepackaged distros you will have to deal with it .
Forgot to add, I am installing GLib from source, not a binary.
 
Old 08-27-2004, 08:30 AM   #4
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,074

Rep: Reputation: 59
As long as you're using FC 1, get apt-get for fc1 and install glib with it.
Apt-get will download the pakages you need and dependencies in rpm and it will install them for you.
It's really easy to use, and I recommend you as well that you get synaptic (the GUI for apt-get). If you do a google search, there's a lot of pages where they explain you how to use apt-get.
 
Old 08-27-2004, 12:22 PM   #5
skoivisto
LQ Newbie
 
Registered: Jul 2004
Location: USA
Distribution: Fedora Core 1
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for the reply. Is there any other way to get GLib with development headers other than apt-get? Thanks.
 
Old 08-27-2004, 07:31 PM   #6
praedictus
LQ Newbie
 
Registered: Aug 2004
Distribution: Slackware 9.1
Posts: 6

Rep: Reputation: 0
Your glib install may be ok, you may need to set up an environment variable to direct the ./configure to the right header files.
Am having a similar problem with Slackware 9.1, but it seems to be due to having an old version 1.x version of glib (for backwards comp) around on the system, in addition to the 2.x glib, it seems to default to the old one.
 
Old 08-27-2004, 10:06 PM   #7
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
Quote:
Originally posted by praedictus
Your glib install may be ok, you may need to set up an environment variable to direct the ./configure to the right header files.
yea if you installed from source you are good
glib uses pkg-config
so if you installed in a non standard place you need to add the path to the pkgconfig dir
to PKG_CONFIG_PATH
mine says
PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig:/opt/gnome/lib/pkgconfig:$PKG_CONFIG_PATH
pkg-config has a standard path hardcoded in but i can't remember exactly.. i think its
--prefix= where pkgconfig was installed +/pkgconfig
everything else you have to add
also of course make sure the path to libglib
is in /etc/ld.so.conf
and run as root
ldconfig
 
Old 08-27-2004, 10:17 PM   #8
praedictus
LQ Newbie
 
Registered: Aug 2004
Distribution: Slackware 9.1
Posts: 6

Rep: Reputation: 0
Yes, that was what I was trying to remember.
I had a pkgconfig dir in both /usr/local/lib and in /usr/lib
my glib files were in /usr/lib
did the following:

PKG_CONFIG_PATH="usr/lib/pkgconfig"
LD_LIBRARY_PATH="usr/lib"
export PKG_CONFIG_PATH LD_LIBRARY_PATH

also edited /etc/ lc.so.conf to contain the correct path


Also: watch for stale symlinks in /usr/lib

Last edited by praedictus; 08-27-2004 at 10:20 PM.
 
  


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-devel for slackware slacka Slackware 7 12-03-2004 06:23 PM
gaim - devel and extended prefs dnraz Fedora 1 11-14-2004 08:38 PM
Compiling GAIM says i need GLib 2.0, yet i have GLib 2.4 MadSkillzMan Linux - Newbie 3 07-10-2004 04:10 AM
devel packeges install. but all my source headers are missing !!! qwijibow Linux - Software 3 05-26-2004 12:21 AM
glib & gtk headers Donald1000 Solaris / OpenSolaris 1 06-08-2003 12:19 PM

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

All times are GMT -5. The time now is 09:33 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