Matthias Matthias - 1 year ago 113
Linux Question

How to install mono 3 on Debian testing?

I want to compile the Unreal Engine on my Debian Liunx (testing) box, which needs the mono package

installed that depends on the mono-runtime in version 3.

However, on my Debian box I have installed mono in version 4 and
(4.5 instead of 4.0). So I tried to install that specific version via

sudo apt-get install libmono-corlib4.0-cil

However, that gives me:

libmono-corlib4.0-cil : Depends: mono-runtime (< 3.2.9) but is to be installed

Can I install mono-runtime in version 3 alongside the currently installed version 4, and if so, how?

Answer Source

I have used packages from stable Debian release to build UE.

In order to install libmono-corlib4.0-cil from stable:

  1. Add stable package repository into your /etc/apt/sources.list
  2. Run sudo apt-get update
  3. Install aptitude if you don't have it
  4. Run sudo aptitude -t stable install libmono-corlib4.0-cil

If you have some packages newer then libmono-corlib4.0-cil requires, aptitude will report an error and ask you what to do. In one of the solutions it will suggest to downgrade those packages to appropriate version. Use that solution and you will get libmono-corlib4.0-cil installed.

You may also edit file Engine/Build/BatchFiles/Linux/ inside your directory with UE sources and replace line (should be 78th)

sudo apt-get install -y $DEP


sudo aptitude -t stable install $DEP

And then rerun script. This may help you avoiding similar problems with other packages required by UE.

There may be a way to do everything with apt-get, but I don't know it.

And I'm afraid this way won't allow you to have both versions of mono-runtime