Glib1 vs Glib2

Lowell Gilbert freebsd-questions-local at be-well.ilk.org
Mon Jun 26 12:08:08 UTC 2006


Norberto Meijome <freebsd at meijome.net> writes:

> hi all,
> I am having some problems when installing ports that use GLIB 1.x , and I
> *also* have glib 2.x installed. I have, of course, packages that need 2.x.
>
> when building the pkgs that need glib 1.x (pretty much any package) i get:
> [....]
> checking for glib-config... /usr/local/bin/glib12-config
> checking for GLIB - version >= 1.2.0...
> *** 'glib-config --version' returned 1.2.10, but GLIB (2.10.3)
> *** was found! If glib-config was correct, then it is best
> *** to remove the old version of GLIB. You may also be able to fix the error
> *** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
> *** /etc/ld.so.conf. Make sure you have run ldconfig if that is
> *** required on your system.
> *** If glib-config was wrong, set the environment variable GLIB_CONFIG
> *** to point to the correct copy of glib-config, and remove the file
> config.cache *** before re-running configure
> no
> configure: error: glib test failed
> [...]
>
> The way i read this is that the build process gets an answer from glib-config
> (glib 1.x), but then it detects version 2.
> via the pkg system and bails out.
>
> I haven't been able to figure out how to use the GLIB_CONFIG variable
> properly,as the glib-config file it's finding *IS* the correct one
> ( glib-config does not exist in 2.x).
>
> Is the only alternative to uninstall glib2. while i'm building pkgs that need
> glib1 ? 

They should co-exist just fine; I've never had problems with it.

Did you, perhaps, miss an update step at some point?  
The last few Gnome updates have required special steps described in UPDATING...


More information about the freebsd-questions mailing list