ocra
ocra copied to clipboard
Missing gems despite being present in gemfile
I ran the following command : ocra --no-dep-run --no-enc --gemfile Gemfile texture_mapper.rb
Here is my gemfile :
gem 'fileutils'
gem 'sqlite3'
gem 'gtk3'
gem 'http'
gem 'csv'
And here is the output I get when I try to run the executable :
C:/Users/w42/AppData/Local/Temp/ocr2F30.tmp/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- fileutils (LoadError)
from C:/Users/w42/AppData/Local/Temp/ocr2F30.tmp/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/Users/w42/AppData/Local/Temp/ocr2F30.tmp/src/texture_mapper.rb:1:in `<main>'
Any help would be appreciated.
Try without --no-dep-run.
This might also help you: https://github.com/karhatsu/hello-ocra
Thank you for the answer. I've given up on Ruby executables since then and just use C++ Qt now. Hopefully some day it will be implemented in the language itself.