Here's what you need to install as prerequisites on Windows (copied from Brian's post...but with details for Windows):
- The current version of Mono for Windows. This is required because Mono needs an existing installation of Mono to compile itself. [Note: Mono 2.10 RC4 is here] and the installer for the latest source is usually found here.
- msysGit for Windows. Git is the version control system used for Mono's source code.
- Cygwin. This will be used to build Mono. You need to select several options during installation (listed here).
Create a folder to store the Mono source code. Right-click on it and create a "Git BASH" session from that folder.
- Follow Mono's instructions to check out the latest version of the Mono source.
- Start up Cygwin (using cygwin.bat) and compile Mono by following these steps:
- Change directory to the Mono source directory:
cd /cygdrive/c/<your_path>/mono
- Set the PATH variable to include the installed Mono compiler.
export PATH=$PATH:<path to installed mono>/bin
- Configure the Mono source code (change /tmp/install if desired):
./configure --prefix=/tmp/install
- Compile Mono:
make
- Install Mono:
make install
To try compiling a program, start with these instructions.