[Mono-list] build problems

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


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

Him

> I set up mandrake community 10.1 on my linuxbox, downloaded & compiled gc=
c
> and all those stuff, and have downloaded mono-1.1.1
>=20
> When I try to build from source code, i got this error:
>=20
> 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=
e
> && 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

http://www.all-the-johnsons.co.uk/mono/mono-compiling.html

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.

TTFN

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

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQBBgruBusSVe5EZv3wRAmc7AKChBmuy3BK4V+dg51CrC16BIrLqjgCgkoG4
N/HCc4DS1HKFFma6+JWRAqY=
=L8Ah
-----END PGP SIGNATURE-----

--=-vlHlfi52pTjV5qtPDhJo--