简体   繁体   中英

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,

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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