HOW TO: Install Mono 3.4.x on Ubuntu

Some weeks ago I had to install Mono 3.4 on Ubuntu. Sadly in Ubuntu repositories the Mono package is not up to date. In this HOW TO: Install Mono 3.4 on Ubuntu I will show you step by step how I did installed the latest version of Mono.

What is Mono?

As the official site of describes: “An open source, cross-platform, implementation of C# and the CLR that is binary compatible with Microsoft.NET”

Basically it make possible that C# and .NET programs can be run in any platform for example Ubuntu.

HOW TO Install Mono 3.4 on Ubuntu

I used some forums and sites as references:


First make sure you have NO mono in your machine:

[code]apt-get purge mono-*[/code]

Install some dependencies

[code]apt-get install libpng3 libpng3-dev libtool libtiff4 libtiff4-dev libexif12 libexif-dev libgif4 libgif-dev libpango1.0-dev libatk1.0-dev libgtk-3-0 libgtk-3-dev bison automake autoconf make gcc gtk-sharp2 build-essential xorg-dev libfreetype6 libfontconfig libfontconfig-dev gettext libglib2.0-dev git libjpeg-dev libjpeg8-dev libjpeg-turbo8-dev[/code]

Create a temp directory for downloading mono files

[code]cd /root

mkdir -p install/mono[/code]

Get and install latest libgdiplus:

[code]git clone

cd libgdiplus

./ –prefix=/usr


make install[/code]

Get and install lates Mono:

[code]cd /root/install/mono

apt-get install mono-gmcs

git clone git://

cd mono

./ –prefix=/usr


make install


Get and install latest XSP 3.x

[code]cd /root/install/mono

git clone git://

cd xsp

./ –prefix=/usr


make install


Test the installation

You should test if the installation was a success:

Check if mono was installed:

[code]which mono[/code]

Check the version of mono

[code]mono –version[/code]

Check the version of fastcgi

[code]fastcgi-server-mono4 /version[/code]

Hope you have successfully installed mono on your Ubuntu machine!

Author: Rocko

Share This Post On


  1. Thank you, I was having some problems with the installation. Now it works perfectly :)

    Post a Reply
  2. Thanx man.
    libtiff4 libtiff4-dev must be changed on libtiff5 libtiff5-dev for Ubuntu 14.04

    Post a Reply
  3. To get exactly version 3.4 (not the latest build)
    after commands
    >git clone git://
    >cd mono
    must be executed
    >git checkout 954ed3c91edeb8e22e336d7e7c9ad1a83a779f61

    Post a Reply
  4. I get a “cmake not found” error when doing “./ –prefix=/usr”, can you help me? :/

    Post a Reply
  5. Price Of Viagra 100mg Walmart [url=]cialis from canada[/url] In Half Amoxicillin Malegra Dxt No Prescription

    Post a Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>