Rails 3.1 console error [duplicate]
Possible Duplicate:
no such file to load — readline
I just created a rails app and was trying to get into the console but i keep getting an error
rellon@relloneee:~/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>'
Can i please get some help.....
I also tried pry and now i get this message
rellon@relloneee:~/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: alrea开发者_运维知识库dy 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>'
Looks like this matches your problem
no such file to load -- readline
Basically, you might be missing the readline module.
精彩评论