On Mon, 21 Mar 2005, Micheal LeVine wrote: > > I have tried setting PKG_CONFIG_PATH to /usr/local/lib/pkg-config as > well as to /usr/lib/pkg-config > > The errors I get in the 2 cases when I run configure are different. In > one case it tells me my GLIB is too old and it quits. In the second > case it says, yes, I see 2.4.8, (the rest of the message is in my > earlier email -- see below). > > It seems that the pkg-config is getting inconsistent values for the > library path. > > How do I remove the old version of glib?
My first suggestion is to build the latest glib-2 from source with prefix=/usr and see if that fixes your problem. Otherwise if you want to get rid of all traces of glib-2.0 do this. First, see what you have. Do a # cat /usr/lib/pkgconfig/glib-2.0.pc and a # cat /usr/local/lib/pkgconfig/glib-2.0.pc That will tell you where the program is looking, eg in my case, [EMAIL PROTECTED] opt]$ cat /usr/lib/pkgconfig/glib-2.0.pc prefix=/usr exec_prefix=/usr libdir=/usr/lib includedir=/usr/include glib_genmarshal=glib-genmarshal gobject_query=gobject-query glib_mkenums=glib-mkenums Name: GLib Description: C Utility Library Version: 2.4.6 Libs: -L${libdir} -lglib-2.0 Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include Next go to /usr/lib and find what might be relevant there [EMAIL PROTECTED] lib]$ ls|grep glib-2.0 glib-2.0/ libglib-2.0.a libglib-2.0.la* libglib-2.0.so@ libglib-2.0.so.0@ libglib-2.0.so.0.400.6* You might feel inclined to #rm -rf libglib-2.0* and #rm -rf glib-2.0/ Then go to /usr/include and do the same thing, remove the glib-2.0 directory If you read the .pc file, you will see there are other elements to this mystery, [EMAIL PROTECTED] include]$ locate glib-mkenums /usr/bin/glib-mkenums /usr/share/man/man1/glib-mkenums.1.bz2 /usr/share/gtk-doc/html/gobject/glib-mkenums.html [EMAIL PROTECTED] include]$ locate gobject-query /usr/bin/gobject-query /usr/share/man/man1/gobject-query.1.bz2 /usr/share/gtk-doc/html/gobject/gobject-query.html [EMAIL PROTECTED] include]$ locate glib-genmarshal /usr/bin/glib-genmarshal /usr/share/man/man1/glib-genmarshal.1.bz2 /usr/share/gtk-doc/html/gobject/glib-genmarshal.html If you have come this far, you might as well remove those as well. Then I suggest you repeat the same process with the /usr/local installation. In the end, go back and delete /usr/lib/pkgconfig/glib-2.0.pc and /usr/local/lib/pkgconfig/glib-2.0.pc That in theory gets rid of all your glib-2.0 stuff. Nothing will work now as this library is fairly fundamental, so make sure you are working in a console and re-install glib-2.4.6, but as I said earlier, just build it from source in the first place. All the above is untested, and my gut feeling is that I would be up for a complete rebuild if I did it. Good luck Owen _______________________________________________ Gimp-user mailing list Gimp-user@lists.xcf.berkeley.edu http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user