Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 08-12-2004, 11:00 PM   #1
Registered: Jun 2004
Location: Canada
Distribution: Slackware 10.0
Posts: 80

Rep: Reputation: 15
./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/, 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.
Old 09-28-2004, 05:46 AM   #2
LQ Guru
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
The 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/ 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/ 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/ file.


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
conflicting glib versions and glib-config scius Linux - Software 5 06-03-2008 03:35 AM
how to install new versions of glib? gobi_dgm Linux - Newbie 2 02-08-2005 12:53 AM
pygtk and glib MasterKin8T Slackware 2 01-17-2005 12:39 AM
GIMP complains about glib Ephracis Linux - Software 2 01-14-2005 05:31 AM
pygtk-2.0 not found during install of gnome-python? morrolan Linux - Software 9 02-02-2004 02:13 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:36 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration