简体   繁体   English

运行在Linux中使用Mono编译的C#程序

[英]Running C# program compiled with Mono in Linux

I've compiled a simple helloworld program with Mono in Ubuntu, which I can execute using, 我在Ubuntu中使用Mono编译了一个简单的helloworld程序,我可以使用它执行,

mono helloworld.exe mono helloworld.exe

Also, I could just say, 另外,我可以说,

helloworld.exe 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. 但是,在我不得不从源代码构建Mono的不同Linux机器上(与Ubuntu已经可用的软件包不同),后一个命令不起作用。 It gives me the error, 它给了我错误,

-bash: ./helloworld.exe: cannot execute binary file -bash:./ helloworld.exe:无法执行二进制文件

Any suggestions? 有什么建议么?

Thank you, 谢谢,

您可能必须注册非本机可执行格式,有关更详细的说明,请查看此处

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM