OCRA一个exe像提的是无法处理,需要 'TK'红宝石,部署与OCRA包含TK GUI
require 'tk'
puts 'nope'
包装这个代码 OCRAhttp://github.com/larsch/ocra 不起作用(应用程序在在链路的问题)一个 问题:https://github.com/larsch/ocra/issues/29
(OCRA是1.9的“新” rubyscript2exe,本质上它是用于部署RB脚本作为可执行文件)
唯一的问题似乎是TCL
我不认为这是一个问题
AFAIK问题缺少DLL文件是TK
缺少DLL文件如果他们知道他们可以包括当执行ocra
有没有办法知道tk工作所需的DLL依赖性?
我没有看对问题跟踪今天......已经解决了(几个小时前),对不起。 ocra.bat。\ lib \ main.rb --windows C:\ Ruby192 \ lib \ tcltk \ --no-autoload --add-all-core (添加所有内核是可选的,不要包含它如果exe文件没有它的话) - > http://github.com/larsch/ocra/issues/29 – Onetimeposter123
如果你尝试过它并且工作,你应该把它作为aswer发布并接受它(参见http: //meta.stackexchange.com/questions/12513/should-i-not-answer-my-own-questions)。 –