SHCを介してLinuxサーバー上のbashスクリプトからバイナリ実行可能ファイルを作成しました。作成されたバイナリは、Linux マシンでは問題なく動作しますが、Mac では誤って動作します。bash ファイルを、どこでも実行できるバイナリ実行可能ファイル (ubuntu、CentOS、Mac、Cygwin) に変換するにはどうすればよいですか?
shc -v -r -T -f ir16fetcher.sh
mv ir16fetcher.sh.x ir16fetcher
私のbashスクリプトのシバン
#!/bin/bash
Linux マシンの場合
./ir16installer
USAGE : ir16fetcher <servername/ip address> [the n th latest build - optional. Default 1]
EXAMPLE: ir16fetcher jagger 2
EXAMPLE: ir16fetcher 167.116.6.155
REQUIRE: Please make sure conf file in installation folder ~/IRinstall/ir16 & ~/IRinstall/irmanager
私のMacで
./ir16installer
-bash: ./ir16installer: cannot execute binary file