LinuxQuestions.org
Help answer threads with 0 replies.
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 04-08-2004, 04:05 PM   #1
rundjuling
Member
 
Registered: Jul 2003
Distribution: Fedora Core 2
Posts: 30

Rep: Reputation: 15
Two versions of glib installed


Hi!

I'm trying to upgrade my Gaim 0.59 to the new 0.76 version, and then I found out that I needed my glib to be upgraded. I have glib 1.2 installed now and the new Gaim version needed at least glib 2.0, so I downloaded glib 2.4 and installed it. That worked well, but the problem is that I now have two glib versions installed and I was unable to just upgrade the glib using "rpm -U".
So when I'm trying to configure Gaim I get this error message saying that it can't find the latest glib version that I actually have installed!

Does anyone have a clue what to do? I've run ldconfig too without any luck.

Thanks in advance
 
Old 04-08-2004, 09:39 PM   #2
GregLee
Member
 
Registered: Feb 2004
Location: Waimanalo, HI
Distribution: Slackware 10, Fedora 6
Posts: 308

Rep: Reputation: 30
Re: Two versions of glib installed

Quote:
Originally posted by rundjuling
Hi!

I'm trying to upgrade my Gaim 0.59 to the new 0.76 version, and then I found out that I needed my glib to be upgraded. I have glib 1.2 installed now and the new Gaim version needed at least glib 2.0, so I downloaded glib 2.4 and installed it. That worked well, but the problem is that I now have two glib versions installed and I was unable to just upgrade the glib using "rpm -U".
So when I'm trying to configure Gaim I get this error message saying that it can't find the latest glib version that I actually have installed!

Does anyone have a clue what to do? I've run ldconfig too without any luck.

Thanks in advance
The Gaim configure script uses the program pkg-config to get information about glib. That program, in turn, looks for a file glib-2.0.pc in a pkgconfig directory. So use locate to find out where this file is and see what's in it. There should be a line "Version: 2.4.0". If not, somehow glib wasn't correctly installed. If so, perhaps the file is not in a directory where pkg-config looks, since there may be several pkgconfig directories on your system. Move or copy the file to a different pkgconfig directory and try "pkg-config --modversion glib-2.0", which should return the result "2.4.0". If not, keep fiddling until it does. Then Gaim should find the recent version of glib.
 
Old 04-09-2004, 06:52 AM   #3
rundjuling
Member
 
Registered: Jul 2003
Distribution: Fedora Core 2
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks for the reply.

I know I have installed pkg-config, but I can't seem to find that glib-2.0.pc file you're referring to. Is there any newer version of pkg-config than 0.15?
 
Old 04-09-2004, 12:36 PM   #4
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Glib 1.2 and glib 2.x are not compatible, in the sense that 2.4 is NOT an upgrade for 1.2 - hence you couldn't use the -U switch for rpm.

Use
Code:
locate glib-2.0.pc
and see where it is, then you may need to add that path to the PKG_CONFIG_PATH environment variable before pkg-config can find it.
 
Old 04-09-2004, 12:51 PM   #5
GregLee
Member
 
Registered: Feb 2004
Location: Waimanalo, HI
Distribution: Slackware 10, Fedora 6
Posts: 308

Rep: Reputation: 30
Quote:
Originally posted by rundjuling
Thanks for the reply.

I know I have installed pkg-config, but I can't seem to find that glib-2.0.pc file you're referring to. Is there any newer version of pkg-config than 0.15?
I don't know, but 0.15.0 of pkg-config should work ok -- that's the version I have. The glib-2.0.pc file is not part of pkg-config, but rather it comes with the glib distribution. Follow Komakino's advice, and if you really don't have it, maybe you should reinstall glib. Or compile it from source.
 
Old 06-03-2008, 02:30 AM   #6
shaymaa
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Rep: Reputation: 0
Quote:
Originally Posted by rundjuling View Post
Hi!

I'm trying to upgrade my Gaim 0.59 to the new 0.76 version, and then I found out that I needed my glib to be upgraded. I have glib 1.2 installed now and the new Gaim version needed at least glib 2.0, so I downloaded glib 2.4 and installed it. That worked well, but the problem is that I now have two glib versions installed and I was unable to just upgrade the glib using "rpm -U".
So when I'm trying to configure Gaim I get this error message saying that it can't find the latest glib version that I actually have installed!

Does anyone have a clue what to do? I've run ldconfig too without any luck.

Thanks in advance
I had installed glib-2.14.4 and then I was obligated to install glib-2.8.0
when I configure atk-1.9.0 i met this error:
checking for GLIB - version >= 2.5.7...
*** 'pkg-config --modversion glib-2.0' returned 2.8.0, but GLIB (2.14.4)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error:
*** GLIB 2.5.7 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/. If GLIB is installed
*** but not in the same location as pkg-config add the location of the file
*** glib-2.0.pc to the environment variable PKG_CONFIG_PATH.

I removed glib-2.14.4 directories from all paths and : i typed
ldconfig -f /etc/ld.so.conf
then i retype:
[root@localhost atk-1.9.0]# ./configure --prefix=/usr/
I met the same error
where glib-2.14.4 existes and how to remove it.


Initialy i need to install mysql-workbench-5.0.21, what are library required and how to install
 
  


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
conflicting glib versions and glib-config scius Linux - Software 5 06-03-2008 02:35 AM
xmms install (needs glib>1.22), just installed glib 2.4.8 and still get error message eskiled Linux - Software 2 12-19-2005 09:12 PM
how to install new versions of glib? gobi_dgm Linux - Newbie 2 02-07-2005 11:53 PM
2 different versions of glib and pkgconfig! karl0s Linux - Software 4 09-01-2004 06:05 AM
Two versions of Glib? OnlyMe Linux - Software 1 04-21-2004 06:13 AM

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

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