LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-29-2008, 08:11 AM   #1
NileshBEIT
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Rep: Reputation: 0
Installed Glib-2.17.2, pkg-config displays 2.8.1, so gtk-2.13 unable to install


Hi,
I am using Mandriva 2006.
I have installed GLIB version 2.17.2 using (./configure;make;make install)
But if I try to find the running version of glib using the command pkg-config --modversion glib-2.0 it displays 2.8.1

Similarly when I try to install the GLIB version 2.17.2 using (./configure;make;make install) commands also it displays it has been installed successfully.
But still the pkg-config --modversion glib-2.0 it displays 2.8.1
so gtk-2.13 is not getting installed as it requires higher version than that.

Can someone help me in this regards?

Thanks
Nilesh
 
Old 06-29-2008, 08:52 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
./configure;make;make install put glib in the /usr/local hierarchy. I suspect your old version of glib is installed in the /usr hierarchy. Set PKG_CONFIG_PATH to look in /usr/local/lib/pkgconfig first.
 
Old 06-29-2008, 09:36 AM   #3
NileshBEIT
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Smile

yes you are right
so i resolved it by using ./configure -- prefix=/usr

Thanks a lot for your help
Now glib version returned as 2.17.3

Regards
Nilesh
 
Old 06-29-2008, 10:42 AM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Quote:
Originally Posted by NileshBEIT View Post
i resolved it by using ./configure -- prefix=/usr
That's another way of doing it, but I wasn't going to recommend it because your new glib libraries overwrite your old ones. Anything that was built against glib-2.8.1 and uses functions, variables, etc. that have been deprecated since may be broken. Upgrading glib means there's a good chance you'll need to rebuild other apps.
 
  


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
Unable to install ethereal, I get the error: 'pkg-config --modversion glib-2.0' retur abefroman Linux - Security 5 07-09-2007 11:09 AM
pkg-config glib gtk gdk Peterius Linux - Software 6 05-11-2007 02:38 AM
pkg-config not found after install GTK makaveli_0000 Linux - Software 5 01-13-2007 05:10 PM
Installing Glib, ATK, GTK, Pkg Config, and Pango! LinuZ Linux - Newbie 9 10-26-2003 02:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:50 PM.

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