[Mono-list] NEWBIE: How do I build corlib under Linux?

Jonathan Pryor jonpryor@vt.edu
22 Jul 2002 23:05:04 -0400


Until the next, fully self-hosting release of mono, you build corlib.dll
and the other DLLs by following these "simple" steps:

1.  Get a computer.  (It's useful to have a 2nd computer, but dual
booting or running inside a VMware session are both viable options.)

2.  Install Windows (2000/XP/etc.  98/ME are both a possibility, but
they're not readily supported, requiring the Microsoft Unicode
compatibility layer.  Unless that's changed recently....)

3.  Install the .NET Redistributable package (from
http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/001/829/msdncompositedoc.xml)
or Visual Studio .NET (whichever is more readily available)

4.  Install CygWin (http://www.cygwin.com)

5.  Change your PATH environment variable so that the cygwin
command-line utilities are present.  (From the `bash' shell, type `echo
$PATH', and "convert" the paths as appropriate.  At the very least,
assuming a default install, C:\cygwin\bin will need to be present in
PATH.  Some `lib' directories may need to be as well; I can't check
right now.)

6.  Grab the mono source code.

7.  From the `mcs' directory, type `make' and let the world build...

See http://www.go-mono.com/contributing.html for more information.

This process will be simpler in the future, once the makefiles/build
environment supports self-hosting.  (Given the recent entries on
mono-patches, this should happen shortly.)  You might want to wait for
the next release...  However, a Windows environment will guarantee a
"stable" build environment (using the Microsoft C# compiler), so it'll
likely remain the preferred build environment for some time.

(As for myself, I tend to develop on Linux, mount my Linux box over
Samba, and build from a Windows machine or from VMware.  Other people
have other setups.)

Hope this helps.
 - Jon

On Mon, 2002-07-22 at 16:05, William Wise wrote:
> Hi All,
> 
> A quick and (I bet) easy question:
> 
> I can get mono installed using the mono-build.sh script no problem but am not 
> sure how to get corlib.dll and the rest of the available System.* libraries 
> built from the nightly tarballs.  Any help?  I know I can download them from 
> places like the mono on debian project but I want to build my own so I can 
> make sure everything is in sync.  Please be as specific as possible so I 
> don't have room to screw anything up!  :-)
> 
> Thanks in advance,
> Will
> 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list@ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list