Hi,
I am user of Tebako.
It works well—especially on Linux, where the container version makes it easy to create a self-contained executable.
However, I couldn’t get it to work on Windows, and the macOS version that previously worked no longer does. So I’m evaluating ocran.
Use case:
I want to generate an executable for the gem aspera-cli, which provides a main script ascli.
I tried following the manual:
gem install aspera-cli
ocran $(which ascli)
…but it consistently fails to locate gem dependencies.
macOS error:
#<Thread:0x0000000121327e00 /opt/homebrew/lib/ruby/gems/4.0.0/gems/ocran-1.4.3/lib/ocran/stub_builder.rb:203 run> terminated with exception (report_on_exception is true):
/opt/homebrew/Cellar/ruby/4.0.2/lib/ruby/4.0.0/find.rb:46:in 'block in Find.find': No such file or directory - /opt/homebrew/Cellar/ruby/4.0.2/lib/ruby/gems/4.0.0/gems/singleton-0.3.0 (Errno::ENOENT)
Gem.path on macOS:
$ ruby -e 'puts Gem.path'
/Users/laurent/.gem/ruby/4.0.0
/opt/homebrew/lib/ruby/gems/4.0.0
/opt/homebrew/Cellar/ruby/4.0.2/lib/ruby/gems/4.0.0
Linux error:
#<Thread:0x00007faf038dfe28 /home/laurent/.local/share/gem/ruby/3.3.0/gems/ocran-1.4.3-x86_64-linux/lib/ocran/stub_builder.rb:203 run> terminated with exception (report_on_exception is true):
/usr/share/ruby/find.rb:45:in `block in find': No such file or directory - /usr/share/gems/gems/fiddle-1.1.2 (Errno::ENOENT)
Gem.path on Linux:
$ ruby -e 'puts Gem.path'
/home/laurent/.local/share/gem/ruby/3.3.0
/usr/share/gems
/usr/local/share/gems
It seems that ocran is attempting to locate system gems (included with Ruby), which are located in other folder.
Question:
What the right way to fix that problem of system gems not found ?
And what's the recommended way ?
Thank you!
Hi,
I am user of Tebako.
It works well—especially on Linux, where the container version makes it easy to create a self-contained executable.
However, I couldn’t get it to work on Windows, and the macOS version that previously worked no longer does. So I’m evaluating
ocran.Use case:
I want to generate an executable for the gem
aspera-cli, which provides a main scriptascli.I tried following the manual:
gem install aspera-cli ocran $(which ascli)…but it consistently fails to locate gem dependencies.
macOS error:
Gem.pathon macOS:Linux error:
Gem.pathon Linux:It seems that
ocranis attempting to locate system gems (included with Ruby), which are located in other folder.Question:
What the right way to fix that problem of system gems not found ?
And what's the recommended way ?
Thank you!