[Mono-devel-list] glib versionitis on rh9 impeding newbie mono build

Charlie Ford charlie_ford at sbcglobal.net
Fri Dec 17 20:06:55 EST 2004


I'm trying to build mono from the latest source (via svn) on RedHat 9, 
and am having what seems like a versionitis problem with glib .

BTW I've built & used mono (& S.W.F) on my FC3 box; this other box must 
remain on rh9 for now.

I'm using Paul's 
http://www.all-the-johnsons.co.uk/mono/mono-compiling.html and have 
built libpixman & cairo on rh9  from source obtained via cvs.

Whilst trying to autogen for libgdiplus, I'm told:

[charlie at isslx3 libgdiplus]$ ./autogen.sh --prefix=/usr
...
checking whether -lc should be explicitly linked in... no
creating libtool
checking for pkg-config... /usr/bin/pkg-config
configure: error: "Did not find Glib >= 2.2.3"
[charlie at isslx3 libgdiplus]$ pkg-config --modversion glib
1.2.10
[charlie at isslx3 libgdiplus]$ pkg-config --modversion glib2
Package glib2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib2' found
[charlie at isslx3 libgdiplus]$  # btw, there is no glib2.pc on this machine
[charlie at isslx3 libgdiplus]$ rpm -qa|grep glib2
glib2-2.2.1-1
glib2-devel-2.2.1-1
[charlie at isslx3 libgdiplus]$ su
Password:
[root at isslx3 libgdiplus]# rpm -U /download/glib2-2.2.3-27.i586.rpm
warning: /download/glib2-2.2.3-27.i586.rpm: V3 DSA signature: NOKEY, key 
ID 9c800aca
error: Failed dependencies:
        glib2 = 2.2.1 is needed by (installed) glib2-devel-2.2.1-1
[root at isslx3 libgdiplus]# rpm -e glib2-devel-2.2.1   # not that I really 
want to
error: Failed dependencies:
        glib2-devel >= 2.0.6-3 is needed by (installed) atk-devel-1.2.0-2
...
        glib2-devel >= 2.2.0 is needed by (installed) 
libgnomeui-devel-2.2.0.1-5
[root at isslx3 libgdiplus]#


Q's:Am I right to try to `rpm -U`  to upgrade glib2 from 2.2.1 to 2.2.3 ?  
      Why does pkg-config think I've got 1.2.10 ?
      Would red-carpet automagically take care of the above  ?

TIA,
Charlie




More information about the Mono-devel-list mailing list