Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to build the nightly tarball of Gaim. I ran ./configure, and it tells me I need to get glib 2.0 or greater. No problem, i downloaded and built that. However, when i run gaim ./configure again, it still tells me I need glib >= 2.0. I looked at the log for configure and the error, as far as I can tell, is it can't find a header called glib.h. I have that on my system, but it's in a folder called gilb-1.2 or some such so I'm not sure it'll work. So does anyone know where I can find glib.h for glib >= 2.0? All I can find are RPM's and seeing as I'm on Slackware, they don't really do me any good.
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 http://www.gtk.org/.
What does
locate glib-2.0.pc
give you as a result (in case you do updatedb
on a regular basis ;})?
After installing glib2, did you run ldconfig?
I had no problems with installing glib2 from
source (well, except for having to get & install
a million other, new versions of stuff it depends
on ;}).
Ok, I fixed it, partly. I looked at config.log and saw that gcc wasn't looking in the right directory. Well, I set my CPPFLAGS to point to it and the test program compiles. Now, however, I get this error:
checking for GLIB - version >= 2.0.0... no
*** Could not run GLIB test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding GLIB or finding the wrong
*** version of GLIB. If it is not finding GLIB, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location Also, make sure you have run ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
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 http://www.gtk.org/.
I've run ldconfig and set LD_LIBRARY_PATH, but that isn't working. Any ideas?
Actually, /usr/lib isn't in there. I added it to try and fix the first problem I had, but it didn't help so I took it out. I'm pretty sure it doesn't make a difference for this part of the problem, since glib-2.0 is all in /usr/local/lib anyway, /usr/lib is all the 1.x stuff that came with Slackware
Well, I rebooted and came back later, and I get this:
Quote:
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 http://www.gtk.org/.
This should point to libglib-2.0.so, right? I have that in /usr/local/lib, which is in the list of paths gcc is supposed to be looking for when it links. The compile command is:
Ok, from more trial and error and looking at config.log, I think it's telling me that the glib version in the headers is undefined. This is the error:
Quote:
configure:13390: undefined reference to `glib_major_version'
configure:13390: undefined reference to `glib_minor_version'
configure:13390: undefined reference to `glib_micro_version'
If I change these (in gutils.h) to reflect the correct version, it gives me an error saying the variables are both extern and initialized.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.