Saliya Ekanayake
Saliya Ekanayake

Reputation: 387

Running C# program compiled with Mono in Linux

I've compiled a simple helloworld program with Mono in Ubuntu, which I can execute using,

mono helloworld.exe

Also, I could just say,

helloworld.exe

and it works. However, in a different Linux machine where I had to build Mono from source (unlike with Ubuntu's already available package), the latter command does not work. It gives me the error,

-bash: ./helloworld.exe: cannot execute binary file

Any suggestions?

Thank you,

Upvotes: 0

Views: 2865

Answers (1)

Dirk
Dirk

Reputation: 10958

You probably have to register the non-native executable format, for a more detailed explanation please look here

Upvotes: 2

Related Questions