LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   gaim wants GLIB with devel headers (https://www.linuxquestions.org/questions/linux-software-2/gaim-wants-glib-with-devel-headers-222903/)

skoivisto 08-26-2004 10:13 PM

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.

foo_bar_foo 08-26-2004 10:41 PM

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 .

skoivisto 08-27-2004 08:06 AM

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.

Hammett 08-27-2004 08:30 AM

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.

skoivisto 08-27-2004 12:22 PM

Thanks for the reply. Is there any other way to get GLib with development headers other than apt-get? Thanks.

praedictus 08-27-2004 07:31 PM

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.

foo_bar_foo 08-27-2004 10:06 PM

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

praedictus 08-27-2004 10:17 PM

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


All times are GMT -5. The time now is 01:29 AM.