First thing we need to do is to get the dependencies installed for building Mono 2.6. The current version of mono is 2.4 and Moonlight 2.0 will not work with that version so until 2.6 gets released and makes it's way into ubuntu we'll have to build it ourselves.
sudo apt-get install build-essential mono-mcs bison gettext libglib2.0-devThis will get everything we need to build Mono, you will probably have some of those packages installed already. I did those on a minimal install machine so I had to install all of these packages.
now run the following commands, this will download the latest moonlight beta 9 version of the mono framework.
wget http://ftp.novell.com/pub/mono/sources/moon/1.99.9/mono-2.6.tar.bz2 wget http://ftp.novell.com/pub/mono/sources/moon/1.99.9/mono-basic-2.6.tar.bz2 tar -xjvf mono-2.6.tar.bz2 tar -xjvf mono-basic-2.6.tar.bz2once this is done cd into the mono-2.6 directory and type
./configure --prefix=/usr --with-moonlight=yesThis sets up the build environment. The --prefix part is something I do when installing on ubuntu. By default Mono will build to /usr/local however in more ubuntu systems mono is installed in /usr, now you can (and are advised to) setup a parallel build environment when using mono, but I prefer to use the latest stuff and just refresh my local build as and when new stuff comes out.
Now that configure has done it's stuff you can just type
makethe go a do something else for a while. Once it's finished you should be able to
sudo make installand that should install the Mono 2.6 system. You can verify that by typing
mono --versionWe now need to build mono-basic-2.6, just follow the same procedure
cd mono-basic-2.6 ./configure --prefix=/usr make sudo make installThat should be all you need to do. You should now have a working Mono 2.6 installation.
No comments:
Post a Comment