LinuxQuestions.org
Review your favorite Linux distribution.
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-28-2006, 03:41 PM   #1
Luna-tic
LQ Newbie
 
Registered: Apr 2006
Distribution: Gentoo Linux
Posts: 24

Rep: Reputation: 0
pkg-config version is reported incorrect after install (Mandriva 10.2)


I have just installed Mandriva 10.2 Limited Edition and I downloaded pkg-config version 0.20. I installed it, but when I call "pkg-config --version", I get "0.15.0"... :\

Any help?
 
Old 04-28-2006, 04:02 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You should have installed it over the old version, i.e. using:
Code:
./configure --prefix=/usr
if pkgconfig was installed under /usr/lib/pkgconfig. If you don't want to reinstall you have to set the PATH and PKG_CONFIG_PATH accordingly, i.e .if you installed the newer version in /usr/local (the default) then:
Code:
export PATH=/usr/local/bin:$PATH
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH

Last edited by bathory; 04-28-2006 at 04:05 PM.
 
Old 04-28-2006, 04:26 PM   #3
Luna-tic
LQ Newbie
 
Registered: Apr 2006
Distribution: Gentoo Linux
Posts: 24

Original Poster
Rep: Reputation: 0
Thanks, it helped!
It helped, but I still have a problem. I installed GLIB-2.8.6 and when I type "pkg-config --modversion glib-2.0", I get:
Code:
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
I tried looking for glib-2.0.pc file, but I only found it in the directory from which I compiled GLIB.
 
Old 04-28-2006, 04:30 PM   #4
Luna-tic
LQ Newbie
 
Registered: Apr 2006
Distribution: Gentoo Linux
Posts: 24

Original Poster
Rep: Reputation: 0
UPDATE: I managed to find it in usr/local/lib/pkgconfig directory...
 
Old 04-28-2006, 04:33 PM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
There should also one in /usr/lib/pkgconfig (the one that came with the OS installation). So now you have 2 versions of glib-2.

Last edited by bathory; 04-28-2006 at 04:36 PM.
 
Old 04-28-2006, 04:46 PM   #6
Luna-tic
LQ Newbie
 
Registered: Apr 2006
Distribution: Gentoo Linux
Posts: 24

Original Poster
Rep: Reputation: 0
Not good, I take it :\ How can I remove the old one ?
 
Old 04-28-2006, 04:56 PM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You should use the Mandriva package manager (I think it's urpmi) to remove it.
But, I suggest you to uninstall the software you have installed from source (pkgconfig and glib2) and use that package manager to update to the newer versions. Because later you're going to fall in various dependencies that are not satisfied by the way you have compiled the sources.

Regards
 
Old 04-29-2006, 06:25 AM   #8
Luna-tic
LQ Newbie
 
Registered: Apr 2006
Distribution: Gentoo Linux
Posts: 24

Original Poster
Rep: Reputation: 0
Those two programs don't show up in the package list, so I can't remove them like RPMs.. Plus, when I rebooted, I had the same trouble with pkg-config version. Why is that ?
 
Old 04-29-2006, 08:31 AM   #9
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
when I rebooted, I had the same trouble with pkg-config version. Why is that ?
In order to be able to use always the environment variables you set, you must either put them in /etc/profile to be valid for all users, or to a user's ~/.profile (or ~/.bashrc, or ~/bash_profile whatever your distro uses) to be valid for that user. I suggest you to put them in /etc/profile, i.e. edit /etc/profile and add the 2 "export" statements there. Also if you go on with installing software from source in /usr/local (I'm also doinig so ) you must put "/usr/local/lib" in your /etc/ld.so.conf to be able to use the libraries you're installing there.
 
  


Reply

Tags
installation, pkgconfig, version


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
*** pkg-config too old; version 0.14 or better required. sfaae Linux - Newbie 2 07-11-2009 03:23 PM
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
incorrect memory size reported tintapok Slackware 3 10-29-2005 01:11 AM
pkg-config version problems Spooled Linux - Software 0 09-04-2005 04:53 PM
can't download pkg-config?...newer version needed... breezewax Linux - Software 1 09-06-2004 10:07 PM

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

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