[Mono-list] build problems

Paul paul@all-the-johnsons.co.uk
Fri, 29 Oct 2004 22:52:02 +0100

Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable


> I set up mandrake community 10.1 on my linuxbox, downloaded & compiled gc=
> and all those stuff, and have downloaded mono-1.1.1
> When I try to build from source code, i got this error:
> checking for pkg-config... /usr/bin/pkg-config
> Package glib-2.0 was not found in the pkg-config search path.
> Perhaps you should add the directory containing `glib-2.0.pc'
> to the PKG_CONFIG_PATH environment variable

Have a look in /usr/lib/pkgconfig for a file called glib-2.0.pc - it
should be there. If not, you can install it from the distro CDs.

One recurring problem is that if you don't specify --prefix=3D/usr, then
the script looks in /usr/local/lib/pkgconfig which, unless you've
compiled glib by yourself, it won't find in there.

> I've downloaded glib-2.0.7, unzipped and compiled with ./configure && mak=
> && make install. Everything seems to work fine with glib, but mono
> compilation still don't work.  I've updated automake, autoconfig and
> libtool, as I saw a message in this lists wich explains exactly this
> problem and recommended update those tools, but i got nothing.

Sounds like a bad course of action

rpm -qa glib*

will tell you if it's installed. You shouldn't have needed to install
the newer packages at all!

If you still have the source packages, cd into them, su and make
uninstall. Install the Mandrake rpms for glib2 & glib2-devel (if they're
not already installed).

I would recommend not bothering with the tar balls, but to use the cvs
system instead. It's far simpler to use. Full instructions for compiling
cvs up are available at


Updating automake, autoconf and glib should not be required to compile
Mono, especially if you're using Mandrake 10.1. Remember the old addage,
if in doubt, ask. If it's still not clear, ask again.


"Trust me, I know what I'm doing" - Det. Sledgehammer

Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

Version: GnuPG v1.2.6 (GNU/Linux)