ocra
ocra copied to clipboard
Code execution cannot proceed because dll was not found
Hi,
I tried OCRA in Windows 10 (10.l0.19043 Build 19043) with Ruby 3.0.2 (including MSYS2 & MINGW Toolchains)
The code in sample.rb is the following:
puts 'Hello, World!'
When I run ocra sample.rb
from the Command Prompt, I get the following output:
However, when I run sample.exe
, I get the following 3 errors (despite not having any gem or dll dependencies in my Ruby sample.rb script):
I tried re-running ocra sample.rb
from Git Bash, but it does not even work all the way from there.
Help is appreciated.
Same issue. see https://github.com/larsch/ocra/issues/168
You can manually include the dlls with --dll ruby_builtin_dlls\<dll>
, as tacky of a solution as that is.
I have a feeling that ocra is unmaintained and this bug is going to go unfixed. I'd be willing to maintain it, but unfortunately I have too much on my plate at the moment.
@AndyObtiva You may want to try switching to Ruby version 2.6.5 or an older version. Personally, I have become accustomed to packaging .rb files into .exe files using this version.
Hope this helps.
@AndyObtiva You can try my fork ocran, which solves those problems.