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

Executable created with Ocra and Ruby 3.2.2 throw an error #193

Open
silkPK opened this issue May 5, 2023 · 2 comments
Open

Executable created with Ocra and Ruby 3.2.2 throw an error #193

silkPK opened this issue May 5, 2023 · 2 comments

Comments

@silkPK
Copy link

silkPK commented May 5, 2023

Executable generated with last gem Ocra 1.3.11 and Ruby 3.2.2 return following error

C:/Users/x/AppData/Local/Temp/ocrFBB1.tmp/lib/ruby/site_ruby/3.2.0/rubygems.rb:1368:in read': No such file or directory @ rb_sysopen - C:/Users/x/AppData/Local/Temp/ocrFBB1.tmp/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb (Errno::ENOENT) from C:/Users/x/AppData/Local/Temp/ocrFBB1.tmp/lib/ruby/site_ruby/3.2.0/rubygems.rb:1368:in <top (required)>'
from internal:gem_prelude:2:in require' from <internal:gem_prelude>:2:in internal:gem_prelude'

@SetScript
Copy link

ocra is designed for older versions of ruby and therefore it doesn't work, but you can use an ocra fork called ocra2

https://rubygems.org/gems/ocra2

@Largo
Copy link

Largo commented May 16, 2023

ocra2 seemed interesting but they still haven't created a github repo. I made a new fork called ocran, which also fixes a new problem with the new rubygems, where kernel_require.rb was not in the load path.
Considering that the gem contains binary files, I also plan to only create gems from github actions for security.

Thanks to all contributors for this great project.

https://github.com/largo/ocran

Edit: Just reread the issue. It's exactly what I fixed in the fork. I'm still testing and trying to improve the gem with all the fixes that I have available (innosetup for instance), so let me now in the issues if anything in the fork does not work.

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

3 participants