Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code execution cannot proceed because dll was not found #182

Open
AndyObtiva opened this issue Mar 28, 2022 · 4 comments
Open

Code execution cannot proceed because dll was not found #182

AndyObtiva opened this issue Mar 28, 2022 · 4 comments

Comments

@AndyObtiva
Copy link

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:

ocra-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):

ocra-error1

ocra-error2

ocra-error3

I tried re-running ocra sample.rb from Git Bash, but it does not even work all the way from there.

Help is appreciated.

@yvesll
Copy link

yvesll commented Apr 21, 2022

Same issue. see #168

@Speak2Erase
Copy link

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.

@Vucius
Copy link

Vucius commented Apr 21, 2023

@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.

@Largo
Copy link

Largo commented May 17, 2023

@AndyObtiva You can try my fork ocran, which solves those problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants