[Mono-devel-list] Building from CVS

Ravindra Kumar rkumar at novell.com
Wed Dec 10 03:45:09 EST 2003

Try doing it this way,
1. Update your mono and mcs modules.
2. decide where do you want to install mono, say it is "/opt/mono"
3. get the latest monocharge. copy *.dll and *.exe to /opt/mono/lib and
/opt/mono/bin directories respectively.
4. Go to mono directory and do ./autogen --prefix=/opt/mono
5. do "make fullbuild", mono and mcs would get installed at the prefix
6. Add "/opt/mono/bin" path to your $PATH variable.

If you have mono already installed, these steps should work for you. To
use your new mono, place "/opt/mono/bin" path at the beginning. Also,
you can always try "type mono" or "type mcs" to verify the location from
where your system is running these commands.

All the best!

- Ravindra

>>> Christopher Keith Fairbairn <ckf13 at student.canterbury.ac.nz>
12/10/2003 12:44:47 PM >>>

On Tue, 2003-12-09 at 06:11, Ravi Pratap M wrote:
> Please upgrade to mono-0.29 and try it again - it is sure to work.
> alternative is to use a daily snapshot from say 2 days ago to build

I managed to get some spare time today to attempt this again but I am
still getting the same error.

The steps I took was to download monocharge-20031208 and properly
install it (I think/hope - I copied the dlls to /usr/lib and the exe's
to /usr/bin). At least now invoking mcs --version or mono --version
returns a newer version number than it used to. In particular

Mono C# compiler version

Then I entered the mono directory (module) that I had freshly
from anon CVS and ran autogen.sh followed by make.

When I execute the "make fullbuild" step, mcs.exe builds fine but
building mscorlib.dll quickly bombs out with the following error
from mcs.

error CS0509: class `System.Reflection.MonoGenericInst': Cannot
from sealed class `System.MonoType'

Obviously I need to study C# a heck of a lot more (at present I don't
know much more than "hello world" style knowledge). I don't know how
debug the cause of this compilation failure as it is starting to
my C# knowledge. For example the MonoType class is indeed marked as
sealed in my copy of mcs/class/corlib/System/MonoType.cs and hence I
didn't think the MonoGenericInst class could derive from it (as the
error message says). Obviously there's a gap in my C# knowledge
somewhere in this department.

Does anyone have any further suggestions? If someone more
than me could point me in the right direction of what I should be
investigating (i.e. is it possibly pickup up reminants of a previous
install, or does it look like an incomplete CVS update i've made etc
etc) I'm more than happy to go off investigating on my own for a

Christopher Keith Fairbairn <ckf13 at student.canterbury.ac.nz>

Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com 

More information about the Mono-devel-list mailing list