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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
04-28-2006, 04:41 PM
|
#1
|
LQ Newbie
Registered: Apr 2006
Distribution: Gentoo Linux
Posts: 24
Rep:
|
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?
|
|
|
04-28-2006, 05:02 PM
|
#2
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,215
|
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 05:05 PM.
|
|
|
04-28-2006, 05:26 PM
|
#3
|
LQ Newbie
Registered: Apr 2006
Distribution: Gentoo Linux
Posts: 24
Original Poster
Rep:
|
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.
|
|
|
04-28-2006, 05:30 PM
|
#4
|
LQ Newbie
Registered: Apr 2006
Distribution: Gentoo Linux
Posts: 24
Original Poster
Rep:
|
UPDATE: I managed to find it in usr/local/lib/pkgconfig directory...
|
|
|
04-28-2006, 05:33 PM
|
#5
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,215
|
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 05:36 PM.
|
|
|
04-28-2006, 05:46 PM
|
#6
|
LQ Newbie
Registered: Apr 2006
Distribution: Gentoo Linux
Posts: 24
Original Poster
Rep:
|
Not good, I take it :\ How can I remove the old one ?
|
|
|
04-28-2006, 05:56 PM
|
#7
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,215
|
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
|
|
|
04-29-2006, 07:25 AM
|
#8
|
LQ Newbie
Registered: Apr 2006
Distribution: Gentoo Linux
Posts: 24
Original Poster
Rep:
|
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 ?
|
|
|
04-29-2006, 09:31 AM
|
#9
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,215
|
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.
|
|
|
All times are GMT -5. The time now is 11:45 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|