Mono 2.8.2 Script Updated for Ubuntu and Fedora


I just committed the script for 2.8.2. This was literally a text replacement of 2.8.1. However, this one seems to work with membership out of the box; so that’s good. Anyways you can find these scripts at or use the bash sequence below.

I ran through these scripts on Ubuntu 10.10 and Fedora 14 fresh installs.  I would discourage setting your default environment path to use this version and stick to using it just for Asp.Net. You can set the MonoPath in your Apache virtual host config to use this one specifically.  It will install to /opt/mono-2.8.2

Comment if you have any questions or problems.


wget --no-check-certificate
chmod 755



wget --no-check-certificate
chmod 755


Update 1/30/2011

Be sure and set the environment variables in the virtual host config to use the correct prefix. This script will install to /opt/mono-2.8.2;  So modify the MonoSetEnv line in your virtual host config: 

MonoSetEnv appName MONO_IOMAP=all;LD_LIBRARY_PATH=/opt/mono-2.8.2/lib:$LD_LIBRARY_PATH;PATH=/opt/mono-2.8.2/bin:$PATH

MONO_IOMAP=all is optional; but on by default usually. The important part is to include the other two so mod_mono knows how to find this 2.8.2 install.  Likewise, if you're running console or GUI apps w/ this version; you'll need to set your local environment to use the modified LD_LIBRARY_PATH and PATH as well. See for more info. 


Update 2/20/2011

Mono 2.10 has been released and I added a new install script.

27 thoughts on “Mono 2.8.2 Script Updated for Ubuntu and Fedora

  1. Hi there. Thanks for putting this together.

    I was just trying out your script on my VPS and I noticed that you’ve got the version number for libgdiplus wrong. It’s still 2.8.1 for Mono 2.8.2. Other than that it looks good!

  2. Do the error messages for membership manifest themselves in the form of strange configuration errors when trying to start the web server? I’m running this installation now (coming from 2.8.1) and I’ve been having some strange issues there trying to upgrade a project to MVC2. Not sure if my problems are the result of using the VS2010 upgrade wizard to get there or an issue with mono itself.

    Thanks for keeping these scripts updated – it makes keeping up with the latest and greatest so much easier!

  3. @Alex Ullrich
    You bet! Thanks!

    Yeah, you know, it’s been awhile since I’ve seen the error, but I want to say it was either NotImplemented or MethodNotFound… I can’t recall at the moment. But, I do remember when MVC2 first came out, Scott Guthrie linked an article on that described manually upgrading your MVC1 project to MVC2. Here’s the link. You might try doing this instead of using the wizard.

  4. Cool I will take a look – there was definitely a MethodNotFound error in the stack trace, somewhere in the System.Configuration namespace so it could certainly be the error you notice. The good news is 2.8.1 is still running the MVC1 / 3.5 version of the site just fine.

    If I find anything specific when looking over the config files tonight I’ll let you know.

  5. Hi,

    First I have to say – Great work and thank you very much for Mono 2.8.2 script for Ubuntu! It helped me a lot.

    I ran that script on Ubuntu 10.04 server edition and it didn’t install mono correctly. I went throught the script and found out that package manager didn’t find git package.
    So I changed the name to the “git-core” and re-run the script. Everything went fine then.

    Apps running on 2.8.2 are now about 5 times faster than with v. 2.4 according my tests on one server.

    - oxd -

  6. @oxd
    You bet! Thanks! I’ll make the change to the script and push it. I don’t think it’s required by these packages, but if you ever want to pull the latest build, you’ll need it.


  7. Having a problem with this. I ran the scripts, but for the life of me can not figure out how to enable 2.8.2 in apache. At the final output it tells me to update virtual host config to use this. My problem is that if I do this the server fails to restart. (Currently using EHCP) any ideas of what needs to be entered into the config to get this one used?

  8. @Nathan
    Ok tried that not sure, but did not work. Might be I did not add it right to the virtual host template. So I am attempting another way. I set the path to were mono (I know not recommended lol) checked the version after restarting Ubuntu 10.10 its the new version now when I point the mono.conf to /opt/mono-2.8.2/bin/mod-mono-server2 (and even 4) I get the following:

    “LoadModule mono_module /opt/mono-2.8.2/bin/mod-mono-server4″ I get a syntax error in the apache2.conf and mono.conf along with “cannot load /opt/mono-2.8.2/bin/mod-mono-server4 into server: /opt/mono-2.8.2/bin/mod-mono-server: invalid ELF header.

    or is it best to load it with the path in the main apache2 config? If this is better what section of the config would I put this in? as I’m not seeing were to put that path for the appname in apaache2 config

  9. I’m sorry for the confusion. When you build and install Mod_mono, it will automatically create a module config for you and put it in /etc/apache2/ You should then move and enable it. Take a look at another post I wrote on setting up Asp.Net w/ mono from beginning to end. The snippet you mentioned “LoadModule …” was from the module config; not the virtual host config.

    Below is an example of one of my virtual host configuration, which is what I was referring to in my lastest update (not the mod_mono module config). You should use MonoSetEnv to set environment variables used by mono and not SetEnv directly.

    <VirtualHost *:80>
    ServerName ubuntu

    DocumentRoot /srv/www/ubuntu

    MonoServerPath ubuntu "/opt/mono-2.8.2/bin/mod-mono-server2"
    MonoDebug ubuntu true
    MonoSetEnv ubuntu MONO_IOMAP=all;PATH=/opt/mono-2.8.2/bin:$PATH;LD_LIBRARY_PATH=/opt/mono-2.8.2/lib:$LD_LIBRARY_PATH;

    MonoApplications ubuntu "/:/srv/www/ubuntu"
    <Location "/">
    Allow from all
    Order allow,deny
    MonoSetServerAlias ubuntu
    SetHandler mono
    SetOutputFilter DEFLATE
    SetEnvIfNoCase Request_URI "\.(?:gif|jpe?g|png)$" no-gzip dont-vary
    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript

  10. wget –no-check-certificate
    –2011-05-22 17:30:03–
    Connecting to||:443… connected.
    WARNING: certificate common name 鈥?.github.com鈥?doesn鈥檛 match requested host name 鈥済ithub.com鈥?
    HTTP request sent, awaiting response… 404 Not Found

    2011-05-22 17:30:03 ERROR 404: Not Found.

  11. Fedora 12

    /usr/bin/install: target `Mono.WebServer.source’ is not a directory
    make[2]: *** [install-data-local] Error 1
    make[2]: Leaving directory `/root/build/xsp-2.8.2/docs’
    make[1]: *** [install-am] Error 2
    make[1]: Leaving directory `/root/build/xsp-2.8.2/docs’
    make: *** [install-recursive] Error 1

  12. wget –no-check-certificate

    –2011-05-24 11:14:03–
    Connecting to||:443… connected.
    WARNING: certificate common name 鈥?.github.com鈥?doesn鈥檛 match requested host name 鈥済ithub.com鈥?
    HTTP request sent, awaiting response… 404 Not Found
    2011-05-24 11:14:04 ERROR 404: Not Found.

  13. Hi guys. When i try to run the wget command, i get as follows.

    root@iplist:~# wget --no-check-certificate
    --2011-09-02 14:16:26--
    Connecting to||:443... forbundet.
    HTTP forespørgsel sendt, afventer svar... 404 Not Found
    2011-09-02 14:16:27 FEJL 404: Not Found.

    Is an update to a working command possible? :p
    Thanks on advance.

  14. Hi @drenriza ,

    Take a look at my previous comment. I started lumping the minor versions together into a 2.8 and 2.10 using the most recent versions respectively. So for 2.8, use:

    wget --no-check-certificate
    chmod 755

    I highly recommend the latest 2.10 version here (currently 2.10.5)

  15. @Jonathan
    Also, sorry for the double post, but the script downloaded mono28 but then it reported

    tar: This does not look like a tar archive
    tar: Skipping to next header
    tar: Exiting with failure status due to previous errors

    Any ideas?

  16. Thanks @Jonathan .

    That’s interesting. Honestly, I haven’t run this script in awhile. Currently, Ubuntu 12.04+ will install Mono 2.10+ and this 2.8 script is no longer necessary. The latest post on installing mono is installing Mono 2.11, but even that is a bit dated. I’ll try and a get an updated set published here soon. I would first try your OS version and see if that does what you need.

    “sudo apt-get install mono-devel xsp4 mod-mono-server4″ (for aspnet4 for example).

  17. Ok, I wound up getting MonoGameInstaller3.0.1.exe and running it in wine. I was trying to run your script because they said mono 2.08 fixed a certain problem with running terraria. I wound up getting it working using other methods.

Leave a Reply

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>