GithubHelp home page GithubHelp logo

Comments (8)

kridtakarn avatar kridtakarn commented on August 30, 2024 2

[SOLVED] Arch linux have broken Mono official repository.

I solved the problem. Arch have broken Mono official repository. Its maintainer is bad.
This is my command for solve it. I recommended it for other Arch users who want to build OpenRA/RA2 until its maintainer will solve it.

mkdir -p /tmp/mono-deb
cd /tmp/mono-deb                                             
curl https://download.mono-project.com/repo/ubuntu/pool/main/m/mono/mono-roslyn_6.12.0.147-0xamarin17+ubuntu2004b1_all.deb > mono.deb                          
ar p mono.deb data.tar.xz | tar xJf - ./usr/lib/mono/4.5/System.Reflection.Metadata.dll --strip-components 5
sudo mv /usr/lib/mono/4.5/System.Reflection.Metadata.dll /usr/lib/mono/4.5/System.Reflection.Metadata.dll_OLD
sudo cp System.Reflection.Metadata.dll /usr/lib/mono/4.5

For more information.
KSP-CKAN/CKAN#3361

from ra2.

Mailaender avatar Mailaender commented on August 30, 2024

Try reading the error message yourself:

It was not possible to find any installed .NET SDKs.
Install a .NET SDK from:
https://aka.ms/dotnet-download

from ra2.

kridtakarn avatar kridtakarn commented on August 30, 2024

Still have problem

kridtakarn  ~  ra2  make
make[1]: Entering directory '/home/kridtakarn/ra2/engine'
make[1]: Leaving directory '/home/kridtakarn/ra2/engine'
make[1]: Entering directory '/home/kridtakarn/ra2/engine'
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(2218,5): error MSB3248: Parameter "AssemblyFiles" has invalid value "/usr/lib/mono/4.6.1-api/mscorlib.dll". Could not load file or assembly 'System.Reflection.Metadata, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. [/home/kridtakarn/ra2/engine/OpenRA.PostProcess/OpenRA.PostProcess.csproj]
make[1]: *** [Makefile:155: core] Error 1
make[1]: Leaving directory '/home/kridtakarn/ra2/engine'
make: *** [Makefile:111: engine] Error 2

from ra2.

Mailaender avatar Mailaender commented on August 30, 2024

Could be because @penev92 put the repository in a broken state. I don't see any CI checks running. See if #778 fixes it for you.

from ra2.

penev92 avatar penev92 commented on August 30, 2024

Broken how exactly?
Engine is aligned to release-20200503 and the SDK scripts are aligned to the exact corresponding version. Everything builds & runs and there are no CI checks because Travis is dead.
I would recommend going for the updated version of #778, but this sounds more to me like the broken mono situation. @kridtakarn see if any of this helps:

ubuntu doesn't have msbuild at all
you need to follow https://www.mono-project.com/download/stable/#download-lin-ubuntu
those instructions are linked from openra's installation documentation but not mods
if you add the mono repository and then update/install mono-devel it should hopefully just work

Also note that you can't use .NET 5 or .NET Core. The current version of the mod is still at .NET 4.6.1! So you need Mono on Linux.

from ra2.

kridtakarn avatar kridtakarn commented on August 30, 2024

How can i downgrade my .NET to 4.6.1 with mono?

im using Arch Linux not Ubuntu. It is rolling-release distribution and all of packages or repositories always change to its latest version or latest arch-maintained. There are Mono and MSBuild in Arch Linux as an official repository.

from ra2.

penev92 avatar penev92 commented on August 30, 2024

As far as I understand from the Mono website, the latest version of it should be compatible with both .NET Framework 4.6 and 4.7, so get the latest Mono.

from ra2.

Mailaender avatar Mailaender commented on August 30, 2024

Try https://aur.archlinux.org/packages/openra-ra2-git

from ra2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.