Update Mono on Ubuntu

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m
(integrated)
Line 1: Line 1:
This page is intended to give detailed instructions for updating (downloading and compiling) MONO on Ubuntu. Most of the information has been provided by DEVARTHUR in his blog site.<br /><br />
+
#Redirect [[Dependencies#Ubuntu]]
These directions have been generalised where appropriate in an attempt to make them future proof. Where you see the <i><b>release</b></i> you need to substitute the release level you wish to install e.g. "2.4.2.3".<br /><br />
+
Firstly you need to make sure you have all the prerequisites which are:<br />
+
- autoconf<br />
+
- build-essential<br />
+
- binfmt-support<br />
+
- bison<br />
+
- gawk<br />
+
- gettext<br />
+
- libglib2.0-dev<br />
+
- mono-common<br />
+
- pkg-config<br />
+
- swig<br /><br />
+
You can use your favourite package manager (aptitude, apt-get, Synaptic, etc.) to do this e.g.:<br /><br />
+
apt-get install autoconf build-essential binfmt-support bison gawk gettext libglib2.0-dev mono-common pkg-config swig<br /><br />
+
Next you need to download the appropriate version of Mono sources. These are held by Novell in .tar.bz2 format. To see all available releases just type the following into an Internet Browser:<br />
+
http://ftp.novell.com/pub/mono/sources/mono<br /><br />
+
To download the source code first change directory to the receiving structure e.g.:<br />
+
cd software/mono<br /><br />
+
Now get and unpack the sources:<br />
+
wget http://ftp.novell.com/pub/mono/sources/mono/mono-<i><b>release</b></i>.tar.bz2<br />
+
tar xf mono-<i><b>release</b></i>.tar.bz2<br /><br />
+
Where <i>release</i> is the desired version, so to get version 2.4.2.3 this would read:<br />
+
wget http://ftp.novell.com/pub/mono/sources/mono/mono-2.4.2.3.tar.bz2<br />
+
tar xf mono-2.4.2.3.tar.bz2<br /><br />
+
This creates a new directory mono-<i><b>release</b></i> under the current directory and this is where the compile is run from so change to this directory:<br />
+
cd mono-<i><b>release</b></i><br /><br />
+
 
+
Now configure, compile and install the new version. For the "make" commands you will need Root privileges, so either change to Root user or use the sudo option:<br />
+
./configure --with-libgdiplus=no<br />
+
sudo make<br />
+
sudo make install<br /><br />
+
Both "make" statements take some time and produce lots of chatter to the screen, don't worry about it. Any errors are likely to be due to missing prerequisites but it kindly tells you which ones at the end of the step.<br /><br />
+
Lastly you need a symlink to let binfmt-support execute mono executeables directly from the shell:<br />
+
ln -s /usr/local/bin/mono /usr/bin/cli<br /><br />
+
If you get a report that the file already exists that is OK, it just means that a previous release of mono was installed.<br /><br />
+
 
+
To verify that the new version of mono is now live issue the command:<br />
+
mono -V<br /><br />
+
 
+
This will tell you the current live version.<br />
+

Revision as of 19:10, 11 May 2011

  1. Redirect Dependencies#Ubuntu
Personal tools
General
About This Wiki