Jump to content


How To Install Mono 2.11.2 On Debian Squeeze

  • Please log in to reply
No replies to this topic

#1 Arctic


    Haphost Staff

  • Moderators
  • 341 posts
  • LocationGermany

Posted 23 November 2014 - 03:40 PM

Before installing

Before installing version 2.11.2 I actually had 2.6.7 installed (which doesn’t support .NET 4.0). I am not sure if my installation guide will work without you having done this, so in case you run into problems, run this first;

apt-get install mono-complete
apt-get remove mono-complete

After doing this, the command “Mono -V” actually still showed 2.6.7 as being installed so I’m not exactly sure if any of these files were required to get 2.11.2 to run.


Installation guide

Make might take 30-60 minutes, make-install should be fast

Updated for 3.4.0

This release has a bug (missing file) so one of the below commands creates it

apt-get update
apt-get install -y --force-yes gcc libtool bison pkg-config libglib2.0-dev gettext make bzip2 g++ build-essential

mkdir -p /var/mono-install
cd /var/mono-install

wget http://origin-download.mono-project.com/sources/mono/mono-3.4.0.tar.bz2
tar xvjf mono-3.4.*.tar.bz2
cd mono-3.4.*

echo -e '<Project xmlns=<a class="moz-txt-link-rfc2396E" href="http://schemas.microsoft.com/developer/msbuild/2003">"http://schemas.microsoft.com/developer/msbuild/2003">\n    <Import Project="..\Microsoft.Portable.Core.props" />\n    <Import Project="..\Microsoft.Portable.Core.targets" />\n</Project>' > mcs/tools/xbuild/targets/Microsoft.Portable.Common.targets

./configure --prefix=/opt/mono-3.4
make install

rm /usr/bin/mono
rm /usr/bin/gmcs
rm /usr/bin/mcs
rm /usr/bin/smcs
rm /usr/bin/dmcs
ln -s /opt/mono-3.4/bin/mono /usr/bin/mono
ln -s /opt/mono-3.4/bin/gmcs /usr/bin/gmcs
ln -s /opt/mono-3.4/bin/mcs /usr/bin/mcs
ln -s /opt/mono-3.4/bin/smcs /usr/bin/smcs
ln -s /opt/mono-3.4/bin/dmcs /usr/bin/dmcs

Best Greetz



any support PM's be Ignored please use the Support section for it



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users