I want to compile the Unreal Engine on my Debian Liunx (testing) box, which needs the mono package libmono-corlib4.0-cil
installed that depends on the mono-runtime in version 3.
However, on my Debian box I have installed mono in version 4 and libmono-corlib4.5-cil
(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 4.2.1.102+dfsg2-8 is to be installed
Can I install mono-runtime in version 3 alongside the currently installed version 4, and if so, how?
Advertisement
Answer
I have used packages from stable Debian release to build UE.
In order to install libmono-corlib4.0-cil
from stable:
- Add stable package repository into your
/etc/apt/sources.list
- Run
sudo apt-get update
- Install
aptitude
if you don’t have it - 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/Setup.sh
inside your directory with UE sources and replace line (should be 78th)
sudo apt-get install -y $DEP
with
sudo aptitude -t stable install $DEP
And then rerun Setup.sh
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