ruby脚本可以预编译成二进制文件吗? [英] Can ruby scripts be precompiled into a binary?

查看:164
本文介绍了ruby脚本可以预编译成二进制文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Ruby脚本,需要部署到没有ruby解释器的系统上。它将需要在使用ELF格式的FreeBSD系统上运行。

I'm working on a Ruby script that will need to be deployed onto systems without a ruby interpreter. It will need to run on FreeBSD systems which uses the ELF format.

我知道有一个ruby2exe项目可以编译ruby脚本在Windows上运行,但它很容易,

I know there is a ruby2exe project to compile ruby scripts to run on Windows, but is it easy or even possible to do that on other operating systems?

推荐答案

是否检查过Rubinius或JRuby是否允许您预编译代码?

Have you checked whether Rubinius or JRuby would allow you to precompile your code?

这篇关于ruby脚本可以预编译成二进制文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆