larsch / ocra

One-Click Ruby Application Builder
http://ocra.rubyforge.org/
833 stars 84 forks source link

Missing gems despite being present in gemfile #135

Open starkgate opened 6 years ago

starkgate commented 6 years ago

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.

thisismydesign commented 5 years ago

Try without --no-dep-run.

thisismydesign commented 5 years ago

This might also help you: https://github.com/karhatsu/hello-ocra

starkgate commented 5 years ago

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.