[Mono-list] [ROOKIE QUESTION] corlib

Adam Treat manyoso@yahoo.com
Fri, 27 Sep 2002 13:51:42 -0400


On Friday 27 September 2002 01:42 pm, you wrote:
> Thanks. That's a pretty clear explanation. However, what if this is the 1st
> time you've built mono on the platform? This is another chicken and egg
> situation.
> I cannot build mcs without a corlib which must be built with mcs. Is the
> solution
> to:

The solution is to download and install one of the releases.  These contain 
prebuilt versions of everything and are meant as a way of bootstrapping.  You 
would use the release version to build the cvs version.  Then you make a 
backup of the cvs version and use this backup to build new cvs version.

wash, rinse, repeat ;)

> 1. Download and install a working Intel version of mono/mcs
> 2. Download and build the latest CVS version of mono
> 3. ??
> n. Take the corlib stuff built and copy it to my platform
>
> -----Original Message-----
> This is an issue we've been struggling with for quite sometime.  It is a
> difficult problem and we have not been able to come up with a fool-proof
> solution to the issue of compiling mono/corlib from cvs in a reliable way.
> The truth is it's a black art.  Here is my best suggestion:
>
> Try to think of corlib.dll and the mono runtime as two parts of the same
> program.  If you make install the runtime then you must make install the
> corresponding corlib.dll, but you want to install the corlib.dll *after*
> you've installed the runtime, because installing the runtime can result in
> 0
>
> Kb dlls in /usr/local/lib.
>
> Let me say that again for emphasis, the corlib.dll and mono runtime must
> always be in sync.  Now the problem: how do you reliably compile corlib.dll
> without the corresponding runtime.  Well the usual answer (this does not
> always work) is to keep a different version (usually a release) of
> mono/corlib/mcs installed just for compiling current cvs.  Once you have a
> version of mono from cvs installed i would suggest making a backup of all
> dlls/runtimes/mcs and keeping these in a safe place in order to restore
> later.
>
> I hope this helps,
>
> Adam