我在 Ubuntu 中用 Mono 编译了一个简单的 helloworld 程序,我可以使用它来执行,
mono helloworld.exe
另外,我只能说,
helloworld.exe
并且有效。但是,在我必须从源代码构建 Mono 的另一台 Linux 机器中(与 Ubuntu 已经可用的软件包不同),后一个命令不起作用。它给了我错误,
-bash: ./helloworld.exe: cannot execute binary file
有什么建议吗?
谢谢,
最佳答案
您可能必须注册非 native 可执行格式,有关更详细的说明,请查看 here
关于c# - 在 Linux 中运行用 Mono 编译的 C# 程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16535703/