phusion / traveling-ruby

Self-contained Ruby binaries that can run on any Linux distribution and any macOS machine.
http://FooBarWidget.github.io/traveling-ruby
MIT License
2.11k stars 121 forks source link

Warning displayed when requiring readline #58

Open noteflakes opened 9 years ago

noteflakes commented 9 years ago

When requiring readline in the packaged app, the following warning is displayed when running it after packaging:

No entry for terminal type "xterm-256color";
using dumb terminal settings.

To reproduce change the hello.rb file in tutorial 2 as follows:

#!/usr/bin/env ruby
require 'faker'
require 'readline'
puts "hello #{Faker::Name.name}"

A workaround is to specify -rreadline when invoking ruby in the wrapper script:

# Run the actual app using the bundled Ruby interpreter, with Bundler activated.
exec "$SELFDIR/lib/ruby/bin/ruby" -rbundler/setup -rreadline "$SELFDIR/lib/app/hello.rb"
FooBarWidget commented 8 years ago

Which OS were you running the demo app on?

noteflakes commented 8 years ago

OSX (10.11)