Compile & Install Mono 3.6 on Ubuntu Linux

mono framework icon

Mono is a .NET framework that is used by a various applications. Two of these are especially relevant to home server users. You can follow guides on how to Install Media Browser 3 on Ubuntu Linux and how to Install NZBDrone / Sonarr on Ubuntu Linux.

 

Compile & Install Mono 3.6

Remove other versions of mono if previously installed.

sudo apt-get remove mono-complete

 

Install required libraries for compiling mono.

sudo apt-get install build-essential gettext

 

Download Mono from the official website or download it directly.

wget http://download.mono-project.com/sources/mono/mono-3.6.0.tar.bz2

 

Unpack the archive.

tar xvjf mono-3.6.0.tar.bz2

 

Change current directory to that of the newly created mono directory.

cd mono-3.6.0

 

Configure mono.

./configure

 

Compile mono.

make

 

Install mono.

make install

 

Remove the downloaded archive.

sudo rm mono-3.6.0.tar.bz2

 

Remove the unpacked files.

sudo rm -dR ../mono-3.6.0

 

Quick Reference

sudo apt-get remove mono-complete
sudo apt-get install build-essential gettext
wget http://download.mono-project.com/sources/mono/mono-3.6.0.tar.bz2
tar xvjf mono-3.6.0.tar.bz2
cd mono-3.6.0
./configure
make
make install
sudo rm mono-3.6.0.tar.bz2
sudo rm -dR ../mono-3.6.0