LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-02-2004, 07:52 AM   #1
Darksun
LQ Newbie
 
Registered: Feb 2003
Posts: 7

Rep: Reputation: 0
GLib installation


OK, I'm a Linux newb, and I've been trying to install some software that needed an Up-to-date version of GLib, since I was using an old version (whatever it was that came with Mandrake 9.0). I downloaded glib 2.2.3, and it compiled fine. The problem was that when I did ./configure on the software I was trying to install, it now gave an error saying there were two different versions on GLib, so it couldn't work.

I found information about this on the net, and it said to completely uninstall all versions of GLib, then install the newest one. I did this, and although Glib (seemingly) installs fine, software isn't finding it, leading to quite a few problems. Below is an example error while trying to compile software, but I'm getting problems trying to run software as well.

*** 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 (url removed).

I tried editing /etc/ld.so.conf, but I'm not sure if I put the right thing in. I also don't know how to edit the environment variable, so if that's all that needs doing, could someone point me in the right direction?

Thanks,

Darksun
 
Old 04-02-2004, 08:53 AM   #2
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Mandriva 2008 Spring
Posts: 652

Rep: Reputation: 31
this is a common problem I am not an expert but this might help. Type at the CLI
A) whereis glib2.3.3
and B) echo $PATH
if where glib is not in your path change your path in your profile or .profile or whereever it is in mandrake (look in /etc/.
When you have changed it you need to type
source /etc/profile(whatever) so the changes take effect.
Good luck and I hope someone can provide a better explanation.
 
Old 04-02-2004, 09:10 AM   #3
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Oh dear, this is a messy can of worms. First thing, whatever changes you made to /etc/ld.so.conf , it would probably be wise to change it back, it defines the default folders that /sbin/ldconfig searches for shared libraries. Also, glib is a shared library that is linked to by many other graphical programs. If you deleted an older version it is quite likely that programs that were linked against it won't work anymore. You may be able to recompile them against your new glib-2.2.3 but it may be simpler to spin your CD's and reinstall Mandrake. Did you install glib-2.2.3 with an .rpm or did you compile it from source? If you did it from source and ran ./configure without specifying --prefix= It will have installed in the default location, /usr/local, and you should be able to get passed your problems above by setting these variables temporarily before you configure gaim
Code:
export LD_LIBRARY_PATH=/usr/local/lib:/usr/X11R6/lib
export LDFLAGS="-L/usr/local/lib"
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/X11R6/lib/pkgconfig:/usr/lib/pkgconfig
edited for typos

Last edited by Andrew Benton; 04-02-2004 at 09:12 AM.
 
  


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
glib installation GTBlackwell Linux - Software 1 10-31-2008 02:03 AM
glib installation trumpetdork Linux - Software 6 04-16-2005 10:54 PM
Please!!!! Help me with Glib 2.6.1 installation Lier Linux - Software 29 03-24-2005 10:23 AM
Verifying installation of glib? jake3217 Linux - Software 3 08-16-2004 01:13 PM
Mandrake Glib installation rolandi Linux - Newbie 2 10-23-2003 08:43 PM


All times are GMT -5. The time now is 07:35 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration