pygtk install found 2 versions of glib and complains
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
./configure error : 2 versions of glib found (pygtk install)
First, when I tried to install pygtk 2.2.0, it told me that it was needed glib-2.2 or greater.
I installed glib-2.4, and tried again to install pygtk.
Then, it told me something like pkgconfig had returned glib-2.4, but glib-2.0.6 was found. It suggested to remove 2.0.6 (I don't know how to do that), or update /etc/ld.so.conf, or check for PKG_CONFIG_PATH
PKG_CONFIG_PATH was pointing on /usr/local/lib/pkgconfig, and there was four files of glib stuff in this directory. But there was also older glib stuff in /usr/lib/pkgconfig, with a lot of other things.
So, I have tried :
# export PKG_CONFIG_PATH=/usr/lib/pkgconfig , and installed again glib-2.4, so that librairies come in the good directory.
But the four glib files went again in /usr/local/lib/pkgconfig, and, in fact, during the make install of glib, it was said :
. . .
Libraries have been installed in:
. . .
And pygtk installation does not find any up-to-date glib, now !
I'm lost !
Last edited by Kanaflloric; 08-13-2004 at 11:07 AM.
The ld.so.conf is very basic. Each line points to a directory that has library or shared files to be loaded in memory. Just add /usr/local/lib on a new line in /etc/ld.so.conf. Then type ldconfig or if you want to see what is ldconfig is doing type "ldconfig -v". You will have to login as su or root to edit /etc/ld.so.conf and to run ldconfig.
You can make a symbolic link to point /usr/local/lib/pkgconfig to /usr/lib/pkgconfig. First you will have to move the files in /usr/local/lib/pkgconfig to /usr/lib/pkgconfig. Then you can make a symbolic link. To do this type "ln -vfs /usr/local/lib/pkgconfig /usr/lib/pkgconfig". If you type "ls -l /usr/local/lib/pkgconfig it should be pointing to /usr/local/lib/pkgconfig". Again you will have to login as su or root to do this.
You will have to specify the path that has glib-2.4 headers when you run ./configure for pygtk 2.2.0. If you have compiled glib-2.0.6. Go into the source directory where you compiled from and do "make uninstall" as su or root.
I do not know why people have not tried posting something because it is a little simple especially the /etc/ld.so.conf file.