gpt4 book ai didi

ruby-on-rails - 由于 "Pry failed to get user input using ` Readline`,无法在终端中运行 rails c。”

转载 作者:行者123 更新时间:2023-12-03 14:51:02 26 4
gpt4 key购买 nike

我似乎无法在终端中运行 rails c。
它不断给我这个错误

    Loading development environment (Rails 4.2.0.beta2)
[1] pry(main)> Error: Input/output error - /dev/null
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:198:in `readline'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:198:in `block in input_readline'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/input_lock.rb:115:in `call'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/input_lock.rb:115:in `interruptible_region'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:197:in `input_readline'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:183:in `block in read_line'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:129:in `handle_read_errors'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:170:in `read_line'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:98:in `read'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:68:in `block in repl'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:67:in `loop'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:67:in `repl'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:38:in `block in start'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/input_lock.rb:61:in `call'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/input_lock.rb:61:in `__with_ownership'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/input_lock.rb:79:in `with_ownership'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:38:in `start'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:15:in `start'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/pry_class.rb:169:in `start'
/Users/Bito/.gem/ruby/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands/console.rb:110:in `start'
/Users/Bito/.gem/ruby/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands/console.rb:9:in `start'
/Users/Bito/.gem/ruby/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands/commands_tasks.rb:68:in `console'
/Users/Bito/.gem/ruby/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
/Users/Bito/.gem/ruby/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands.rb:17:in `<top (required)>'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:248:in `require'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:248:in `block in require'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:233:in `load_dependency'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:248:in `require'
/Users/Bito/Desktop/office/movie/bin/rails:8:in `<top (required)>'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:242:in `load'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:242:in `block in load'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:233:in `load_dependency'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:242:in `load'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/commands/rails.rb:6:in `call'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/command_wrapper.rb:38:in `call'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:180:in `block in serve'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:153:in `fork'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:153:in `serve'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:128:in `block in run'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:122:in `loop'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:122:in `run'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application/boot.rb:18:in `<top (required)>'
/Users/Bito/.rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/Users/Bito/.rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
-e:1:in `<main>'
[1] pry(main)> Error: Input/output error - /dev/null
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:198:in `readline'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:198:in `block in input_readline'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/input_lock.rb:115:in `call'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/input_lock.rb:115:in `interruptible_region'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:197:in `input_readline'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:183:in `block in read_line'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:129:in `handle_read_errors'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:170:in `read_line'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:98:in `read'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:68:in `block in repl'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:67:in `loop'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:67:in `repl'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:38:in `block in start'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/input_lock.rb:61:in `call'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/input_lock.rb:61:in `__with_ownership'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/input_lock.rb:79:in `with_ownership'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:38:in `start'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:15:in `start'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/pry_class.rb:169:in `start'
/Users/Bito/.gem/ruby/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands/console.rb:110:in `start'
/Users/Bito/.gem/ruby/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands/console.rb:9:in `start'
/Users/Bito/.gem/ruby/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands/commands_tasks.rb:68:in `console'
/Users/Bito/.gem/ruby/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
/Users/Bito/.gem/ruby/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands.rb:17:in `<top (required)>'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:248:in `require'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:248:in `block in require'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:233:in `load_dependency'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:248:in `require'
/Users/Bito/Desktop/office/movie/bin/rails:8:in `<top (required)>'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:242:in `load'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:242:in `block in load'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:233:in `load_dependency'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:242:in `load'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/commands/rails.rb:6:in `call'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/command_wrapper.rb:38:in `call'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:180:in `block in serve'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:153:in `fork'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:153:in `serve'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:128:in `block in run'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:122:in `loop'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:122:in `run'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application/boot.rb:18:in `<top (required)>'
/Users/Bito/.rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/Users/Bito/.rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
-e:1:in `<main>'
[1] pry(main)> Error: Input/output error - /dev/null
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:198:in `readline'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:198:in `block in input_readline'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/input_lock.rb:115:in `call'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/input_lock.rb:115:in `interruptible_region'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:197:in `input_readline'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:183:in `block in read_line'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:129:in `handle_read_errors'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:170:in `read_line'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:98:in `read'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:68:in `block in repl'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:67:in `loop'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:67:in `repl'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:38:in `block in start'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/input_lock.rb:61:in `call'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/input_lock.rb:61:in `__with_ownership'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/input_lock.rb:79:in `with_ownership'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:38:in `start'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:15:in `start'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/pry_class.rb:169:in `start'
/Users/Bito/.gem/ruby/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands/console.rb:110:in `start'
/Users/Bito/.gem/ruby/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands/console.rb:9:in `start'
/Users/Bito/.gem/ruby/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands/commands_tasks.rb:68:in `console'
/Users/Bito/.gem/ruby/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
/Users/Bito/.gem/ruby/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands.rb:17:in `<top (required)>'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:248:in `require'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:248:in `block in require'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:233:in `load_dependency'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:248:in `require'
/Users/Bito/Desktop/office/movie/bin/rails:8:in `<top (required)>'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:242:in `load'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:242:in `block in load'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:233:in `load_dependency'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:242:in `load'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/commands/rails.rb:6:in `call'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/command_wrapper.rb:38:in `call'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:180:in `block in serve'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:153:in `fork'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:153:in `serve'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:128:in `block in run'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:122:in `loop'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:122:in `run'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application/boot.rb:18:in `<top (required)>'
/Users/Bito/.rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/Users/Bito/.rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
-e:1:in `<main>'
[1] pry(main)> Error: Input/output error - /dev/null
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:198:in `readline'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:198:in `block in input_readline'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/input_lock.rb:115:in `call'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/input_lock.rb:115:in `interruptible_region'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:197:in `input_readline'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:183:in `block in read_line'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:129:in `handle_read_errors'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:170:in `read_line'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:98:in `read'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:68:in `block in repl'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:67:in `loop'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:67:in `repl'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:38:in `block in start'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/input_lock.rb:61:in `call'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/input_lock.rb:61:in `__with_ownership'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/input_lock.rb:79:in `with_ownership'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:38:in `start'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:15:in `start'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/pry_class.rb:169:in `start'
/Users/Bito/.gem/ruby/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands/console.rb:110:in `start'
/Users/Bito/.gem/ruby/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands/console.rb:9:in `start'
/Users/Bito/.gem/ruby/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands/commands_tasks.rb:68:in `console'
/Users/Bito/.gem/ruby/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
/Users/Bito/.gem/ruby/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands.rb:17:in `<top (required)>'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:248:in `require'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:248:in `block in require'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:233:in `load_dependency'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:248:in `require'
/Users/Bito/Desktop/office/movie/bin/rails:8:in `<top (required)>'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:242:in `load'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:242:in `block in load'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:233:in `load_dependency'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:242:in `load'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/commands/rails.rb:6:in `call'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/command_wrapper.rb:38:in `call'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:180:in `block in serve'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:153:in `fork'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:153:in `serve'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:128:in `block in run'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:122:in `loop'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:122:in `run'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application/boot.rb:18:in `<top (required)>'
/Users/Bito/.rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/Users/Bito/.rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
-e:1:in `<main>'
[1] pry(main)> Error: Input/output error - /dev/null
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:198:in `readline'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:198:in `block in input_readline'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/input_lock.rb:115:in `call'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/input_lock.rb:115:in `interruptible_region'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:197:in `input_readline'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:183:in `block in read_line'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:129:in `handle_read_errors'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:170:in `read_line'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:98:in `read'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:68:in `block in repl'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:67:in `loop'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:67:in `repl'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:38:in `block in start'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/input_lock.rb:61:in `call'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/input_lock.rb:61:in `__with_ownership'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/input_lock.rb:79:in `with_ownership'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:38:in `start'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/repl.rb:15:in `start'
/Users/Bito/.gem/ruby/2.0.0/gems/pry-0.10.1/lib/pry/pry_class.rb:169:in `start'
/Users/Bito/.gem/ruby/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands/console.rb:110:in `start'
/Users/Bito/.gem/ruby/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands/console.rb:9:in `start'
/Users/Bito/.gem/ruby/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands/commands_tasks.rb:68:in `console'
/Users/Bito/.gem/ruby/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
/Users/Bito/.gem/ruby/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands.rb:17:in `<top (required)>'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:248:in `require'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:248:in `block in require'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:233:in `load_dependency'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:248:in `require'
/Users/Bito/Desktop/office/movie/bin/rails:8:in `<top (required)>'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:242:in `load'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:242:in `block in load'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:233:in `load_dependency'
/Users/Bito/.gem/ruby/2.0.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:242:in `load'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/commands/rails.rb:6:in `call'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/command_wrapper.rb:38:in `call'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:180:in `block in serve'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:153:in `fork'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:153:in `serve'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:128:in `block in run'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:122:in `loop'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:122:in `run'
/Users/Bito/.gem/ruby/2.0.0/gems/spring-1.1.3/lib/spring/application/boot.rb:18:in `<top (required)>'
/Users/Bito/.rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/Users/Bito/.rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
-e:1:in `<main>'
FATAL: Pry failed to get user input using `Readline`.
To fix this you may be able to pass input and output file descriptors to pry directly. e.g.
Pry.config.input = STDIN
Pry.config.output = STDOUT
binding.pry

我试过谷歌它,我发现的唯一结果是将 gem "rb-readline", :require => false 添加到 GemFile,但它对我不起作用。
有人遇到过同样的问题吗?谢谢你的帮助。

最佳答案

之前遇到过这个问题,最终导致 rvm 和我的路径出现问题,同时从特定提示符运行 rails/bundler 命令。

试试 rvm listrails -v以确保没有错误/不一致。然后bundle installrails console应该工作正常。希望这会有所帮助!

关于ruby-on-rails - 由于 "Pry failed to get user input using ` Readline`,无法在终端中运行 rails c。”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26943546/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com