mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Give instructions on how to install readline [Fixes #556]
This commit is contained in:
parent
e189538570
commit
c80c2031aa
1 changed files with 8 additions and 1 deletions
|
@ -168,13 +168,20 @@ end
|
|||
|
||||
require "method_source"
|
||||
require 'shellwords'
|
||||
require "readline"
|
||||
require "stringio"
|
||||
require "coderay"
|
||||
require "optparse"
|
||||
require "slop"
|
||||
require "rbconfig"
|
||||
|
||||
begin
|
||||
require 'readline'
|
||||
rescue LoadError
|
||||
warn "You're running a version of ruby with no Readline support"
|
||||
warn "Please `gem install rb-readline` or recompile ruby --with-readline."
|
||||
exit!
|
||||
end
|
||||
|
||||
if Pry::Helpers::BaseHelpers.jruby?
|
||||
begin
|
||||
require 'ffi'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue