ocra

Ruby Ocra executable fatal error on different windows version

隐身守侯 提交于 2019-12-12 18:04:39
问题 I made a pretty simple program for adding to and organizing an array of book authors/titles. I only have one require at the top which is a module I created. The code is all just standard ruby with no gems or anything implemented. require_relative 'pairs2d' I used ocra to turn it into an executable, and the .exe worked fine on my windows 7 computer (which has Ruby installed). When I put the .exe on another computer and ran it, I received a fatal error. The other computer is Windows XP, and it

OCRA missing submodules of libraries if rack/grape api endpoints aren't called

六眼飞鱼酱① 提交于 2019-12-11 09:52:09
问题 I'm trying to pack my REST app into into an executable with OCRA. I have a few gems required in my script: require 'rack' require 'rack/server' require 'grape' require 'grape-entity' require 'rubygems' I skip starting the server with this: if not defined?(Ocra) Rack::Server.start options end When I try to run my server.exe: Temp/../server.rb:221:in `default_middleware_by_environment': cannot load such file -- rack/content_length (LoadError) Which means that it doesn't detect submodules of

Bundling RMagick with Ocra

て烟熏妆下的殇ゞ 提交于 2019-12-10 16:38:39
问题 I'm trying to create a portable version of a Ruby script with Ocra. The script depends upon rmagick which requires ImageMagick to be installed as well. The produced executable works on my computer but it fails on every other computer unless the end user installs ImageMagick manually. I would like to create a fully portable EXE file that runs on any Windows system and doesn't require the end user to install ImageMagick manually. Is there a way to force Ocra to bundle the ImageMagick DLL files

Making an executable from ruby files using Ocra, LoadError?

此生再无相见时 提交于 2019-12-08 21:32:29
I'm trying to make an executable from a couple ruby files on Windows, so I installed Ocra. I thought I understood the process of how Ocra works, but can't seem to get the executable working correctly. The problem I am having arises with "requiring" other ruby files. The ruby program by itself compiles correctly and functions how I want it to, and Ocra seems to create a working executable, however, when I attempt to run the executable, I get the following error: */custom_require.rb:36:in 'require': cannot load such file -- MainMenuDialog.rb (LoadError)* My main program is called 'JobManager.rb'

Making an executable from ruby files using Ocra, LoadError?

无人久伴 提交于 2019-12-08 08:32:57
问题 I'm trying to make an executable from a couple ruby files on Windows, so I installed Ocra. I thought I understood the process of how Ocra works, but can't seem to get the executable working correctly. The problem I am having arises with "requiring" other ruby files. The ruby program by itself compiles correctly and functions how I want it to, and Ocra seems to create a working executable, however, when I attempt to run the executable, I get the following error: */custom_require.rb:36:in

Ruby executable won't start on Win10 and Win7

别来无恙 提交于 2019-12-02 04:51:09
问题 I wrote a ruby application with Tk, and everything is fine, no errors or such. So i made an exe with Ocra and i had some problems at the start but then i solved, Ocra made the exe with no errors and also when it let's you try your script before conpiling it, there were no problems. But then when i double clicked the exe, nothing. I waited, and nothing.. Run it as admin and nothing again.. I also tried to write a simple script, just like an hello world but always the same issue: No errors

Ruby executable won't start on Win10 and Win7

蓝咒 提交于 2019-12-02 03:38:01
I wrote a ruby application with Tk, and everything is fine, no errors or such. So i made an exe with Ocra and i had some problems at the start but then i solved, Ocra made the exe with no errors and also when it let's you try your script before conpiling it, there were no problems. But then when i double clicked the exe, nothing. I waited, and nothing.. Run it as admin and nothing again.. I also tried to write a simple script, just like an hello world but always the same issue: No errors popped up on screen or in cmd, but still nothing happens when i run an Ocra ruby executable with TK This is