0
我剛剛創建一個Rails應用程序,並試圖進入控制檯,但我不斷收到一個錯誤
[email protected]:~/Dropbox/Apress$ rails c
/home/rellon/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/irb/completion.rb:9:in `require': no such file to load -- readline (LoadError)
from /home/rellon/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/irb/completion.rb:9:in `<top (required)>'
from /home/rellon/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands/console.rb:3:in `require'
from /home/rellon/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands/console.rb:3:in `<top (required)>'
from /home/rellon/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands.rb:37:in `require'
from /home/rellon/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands.rb:37:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
請問我能否得到一些幫助.....
我也嘗試撬,現在我得到這個消息
[email protected]:~/Dropbox/Apress$ pry -r config/environment
/home/rellon/.rvm/gems/ruby-1.9.2-p290/gems/pry-0.9.6.2/lib/pry.rb:8: warning: already initialized constant DEFAULT_HOOKS
/home/rellon/.rvm/gems/ruby-1.9.2-p290/gems/pry-0.9.6.2/lib/pry.rb:21: warning: already initialized constant DEFAULT_PRINT
/home/rellon/.rvm/gems/ruby-1.9.2-p290/gems/pry-0.9.6.2/lib/pry.rb:39: warning: already initialized constant SIMPLE_PRINT
/home/rellon/.rvm/gems/ruby-1.9.2-p290/gems/pry-0.9.6.2/lib/pry.rb:48: warning: already initialized constant CLIPPED_PRINT
/home/rellon/.rvm/gems/ruby-1.9.2-p290/gems/pry-0.9.6.2/lib/pry.rb:53: warning: already initialized constant DEFAULT_EXCEPTION_HANDLER
/home/rellon/.rvm/gems/ruby-1.9.2-p290/gems/pry-0.9.6.2/lib/pry.rb:59: warning: already initialized constant DEFAULT_EXCEPTION_WHITELIST
/home/rellon/.rvm/gems/ruby-1.9.2-p290/gems/pry-0.9.6.2/lib/pry.rb:62: warning: already initialized constant DEFAULT_PROMPT
/home/rellon/.rvm/gems/ruby-1.9.2-p290/gems/pry-0.9.6.2/lib/pry.rb:85: warning: already initialized constant DEFAULT_CONTROL_D_HANDLER
/home/rellon/.rvm/gems/ruby-1.9.2-p290/gems/pry-0.9.6.2/lib/pry.rb:100: warning: already initialized constant SIMPLE_PROMPT
/home/rellon/.rvm/gems/ruby-1.9.2-p290/gems/pry-0.9.6.2/lib/pry.rb:102: warning: already initialized constant SHELL_PROMPT
/home/rellon/.rvm/gems/ruby-1.9.2-p290/gems/pry-0.9.6.2/lib/pry.rb:109: warning: already initialized constant NAV_PROMPT
/home/rellon/.rvm/gems/ruby-1.9.2-p290/gems/pry-0.9.6.2/lib/pry.rb:120: warning: already initialized constant DEFAULT_SYSTEM
/home/rellon/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': no such file to load -- readline (LoadError)
from /home/rellon/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/rellon/.rvm/gems/ruby-1.9.2-p290/gems/pry-0.9.6.2/lib/pry.rb:151:in `<top (required)>'
from /home/rellon/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/rellon/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/rellon/.rvm/gems/ruby-1.9.2-p290/gems/pry-0.9.6.2/bin/pry:12:in `rescue in <top (required)>'
from /home/rellon/.rvm/gems/ruby-1.9.2-p290/gems/pry-0.9.6.2/bin/pry:8:in `<top (required)>'
from /home/rellon/.rvm/gems/ruby-1.9.2-p290/bin/pry:19:in `load'
from /home/rellon/.rvm/gems/ruby-1.9.2-p290/bin/pry:19:in `<main>'
此外,這裏是一些指令從rvm特定readline http://beginrescueend.com/packages/readline/ –