From: Chad Perrin Date: 2011-08-08T21:46:13+09:00 Subject: Re: bin-file on linux --k+w/mQv8wyuph6w0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 08, 2011 at 11:43:33AM +0900, Chris White wrote: > On Aug 7, 2011, at 7:32 PM, CC Chen wrote: > > > > How to convert the script code to bin-file(Linux)? >=20 > It depends on what you wish to accomplish by that. If you just want a > file that can be run like a binary executable you can always set the > script as executable (chmod 775 file.rb) and put a shebang at the top: >=20 > #!/usr/bin/env ruby >=20 > Assuming you want something that can be installed and setup for the > user to be run, you can still make the script executable then package > it up as a gem. See the redcar gem for an example of such a setup. > Another remote possibility is using JRuby to compile to java class > files, throw those in a jar, then use something like launch4j as a > wrapper. However that seems a bit much to achieve your goal. I have a sneaking suspicion CC Chen would like something that does not require installing Ruby separately, but I could be making an unwarranted assumption here. --=20 Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] --k+w/mQv8wyuph6w0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAk4/1moACgkQ9mn/Pj01uKXXpQCgkBdEdeY6ECUnzeRLnhPJPE2+ A8EAnjtuMh/WIPDsA379Kvfzacwm4IbU =FMpt -----END PGP SIGNATURE----- --k+w/mQv8wyuph6w0--