kumaryu / irpack

Generate a standalone executable from IronRuby scripts.
14 stars 4 forks source link

LoadError when requiring ruby library from generated EXE on a machine that does not have IronRuby installed #1

Closed RoyTinker closed 13 years ago

RoyTinker commented 13 years ago

I have a machine on which IronRuby is not installed. I have a compiled .exe generated with irpack.

The Ruby program contains the line "require 'net/http'".

When running the .exe on this machine, I get a LoadError - no such file to load - 'net/http'.

tacoo commented 13 years ago

He will make a new option that will be able to include standard library when generating the .exe program.

kumaryu commented 13 years ago

You must embed standard libraries, too. I released 0.2.4, added '--complete' option embeds all of standard libraries.

RoyTinker commented 13 years ago

Thanks so much Kumaryu.

On Sat, Oct 22, 2011 at 6:56 AM, kumaryu < reply@reply.github.com>wrote:

You must embed standard libraries, too. I released 0.2.4, added '--complete' option embeds all of standard libraries.

Reply to this email directly or view it on GitHub: https://github.com/kumaryu/irpack/issues/1#issuecomment-2490147

RoyTinker commented 13 years ago

Question: do irpack-generated exe's require .NET 4.0? Would .NET 2.0 work instead?

kumaryu commented 13 years ago

irpack and generated executables require .NET 3.5 or later. To generate exe on CLR 2 (.NET 3.5), run irpack by CLR 2 version of ir.exe. But there is no .NET 3.5 release of IronRuby 1.1.3. You may need to build it from source.