I tried rubyscript2exe.rb and that has errors in the source.
Does anyone know of a ‘compiler’ for my debugged ruby source into an exe
file?
Thanks in advance
Joe
I tried rubyscript2exe.rb and that has errors in the source.
Does anyone know of a ‘compiler’ for my debugged ruby source into an exe
file?
Thanks in advance
Joe
On 9/22/2011 2:45 PM, Joe C. wrote:
I tried rubyscript2exe.rb and that has errors in the source.
Does anyone know of a ‘compiler’ for my debugged ruby source into
an exe file?Thanks in advance
Joe
rubyscript2exe has been discontinued for a long time. I’d recommend
trying ocra (http://ocra.rubyforge.org/). I tried it once in the past
with good results, but haven’t needed an exe in some time.
Will it work under windows xp? I made some progress with it under
windows but get strange errors…Here is the console command and the
subsequent error message
ruby rubylib/ocrasa.rb rubylib/pvfv.rb
pvfv.rb is my script to compile and contains require ‘tk’ in it
Here is the console log:
=== Loading script to check dependencies
TK Version: 8.5.10
PVFV Starting up at Fri Sep 23 06:42:38
PVFV going down at Fri Sep 23 06:42:41…crash!
=== WARNING: Object::TkTreeview was defined autoloadable, but caused
NameError
any ideas?
Joe
not sure what exactly you had tried to do with your command, but Ocra
not work like this.
TO use ocra, refer to the ocra doc,
the command you should use is something like
ocra yourapplication.rb ressources\ress1.jpg ressources\res2.bnp
with all your project files
you can add this line after your requires in the 1st ruby file
exit if Object.const_defined?(:Ocra)
to avoid ocra execute your app
and I think you had to require all libs in the 1st script as ocra will
only look in this file, but not sure of that.
anyway, I use ocra for my applications with wxruby and it work fine.
btw name your 1st script name.rbw if you do not want ruby start the
console.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs