[Mono-list] build problems

hector@clubdelphi.com hector@clubdelphi.com
Sat, 30 Oct 2004 01:58:42 +0200 (CEST)


Ok, I'll try all this stuff tonight. But, I must make a point about this:
the Mandrake version I got is the "Community" version, wich doesn't come
with any but the essentials developer tools. It means that the gcc, for
example, didn't come in the distro, so I had to download the source
tarballs, compile & install them (wich costs me a couple of hours), so i
doubt i could get the glib rpms from the cds.

Thanks for your help!


> Him
>
>> I set up mandrake community 10.1 on my linuxbox, downloaded & compiled
>> gcc
>> 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=/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 &&
>> make
>> && 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
> --
> "Trust me, I know what I'm doing" - Det. Sledgehammer
>