macrubycを使用して、単純な「HelloWorld」rubyスクリプトをMacOSバイナリにコンパイルしようとしています。これは私が使用しているコマンドです:
macrubyc -C hello_world.rb
これはfile
コマンドの出力です:
file hello_world.rbo
hello_world.rbo: Mach-O 64-bit bundle x86_64
ただし、作成したバイナリを実行しようとすると、./hello_world.rbo: cannot execute binary file
PS:hello_world.rbスクリプトには次の1行しか含まれていません。
puts "Hello World!"