pkg-config version is reported incorrect after install (Mandriva 10.2)
Linux - SoftwareThis 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.
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.
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"... :\
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:
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.
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.
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 ?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.