Project

General

Profile

Actions

Incident #8942

closed

Check Mono installation

Added by Gianpaolo Coro almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
_InfraScience Systems Engineer
Category:
High-Throughput-Computing
Target version:
Start date:
Jun 14, 2017
Due date:
% Done:

100%

Estimated time:
Infrastructure:
Production

Description

On the dataminer0-proto machine, I'm trying to run a simple script through Mono, but I get this error:

The assembly mscorlib.dll was not found or could not be loaded.
It should have been installed in the `/usr/lib/mono/2.0/mscorlib.dll' directory.

but Mono 2.0 is not installed on the machine, I guess. Also, the mscorlib.dll is used by many processes.

I attach the executable I'm running. The command to execute it is:

Mono ./text.exe hi

it produces a simple text file named "program.txt".


Files

text.exe (131 KB) text.exe Gianpaolo Coro, Jun 14, 2017 10:06 AM
Actions #1

Updated by Andrea Dell'Amico almost 8 years ago

  • Status changed from New to In Progress

dataminers have mono 4.0 installed as requirement for another package.
I just installed the mono 2.0 libraries on dataminer0-proto.d4science.org and the result is now:

$ mono ./text.exe
Cannot open assembly './text.exe': File does not contain a valid CIL image.

For what I know about, that means that text.exe is an Windows only executable.

$ file text.exe
text.exe: PE32+ executable (console) x86-64, for MS Windows
Actions #2

Updated by Andrea Dell'Amico almost 8 years ago

  • Status changed from In Progress to Feedback
  • % Done changed from 0 to 50
Actions #3

Updated by Gianpaolo Coro almost 8 years ago

I have compiled them with minGW on a Windows machine, perhaps either this is not supported by Mono or some package is missing. I have found both these explanations around.

Actions #4

Updated by Andrea Dell'Amico almost 8 years ago

minGW is a gcc-derived C/C++ compiler. The result binaries are pure MS Windows executables, while mono is a .Net/C# runtime.

Actions #5

Updated by Gianpaolo Coro almost 8 years ago

  • Status changed from Feedback to Closed
  • % Done changed from 50 to 100
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 8.91 MB)