Ich bin neu bei Ruby on Rails und verwende RVM, um Ruby-Versionen zu verwalten.Warum sagt die Rails-Konsole "kann solche Dateien nicht laden - readline"?
Mein Laptop hat Ruby1.8.7 installiert, aber mein Projekt verwendet RVM, Ruby1.9.3 und Rails 3.2.11.
Ich kann nicht rails c
oder rails console
ausführen, ohne es mir die folgende Fehlermeldung geben:
/home/phil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/irb/completion.rb:9:in `require': cannot load such file -- readline (LoadError)
from /home/phil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/irb/completion.rb:9:in `<top (required)>'
from /home/phil/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.11/lib/rails/commands/console.rb:3:in `require'
from /home/phil/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.11/lib/rails/commands/console.rb:3:in `<top (required)>'
from /home/phil/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.11/lib/rails/commands.rb:38:in `require'
from /home/phil/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.11/lib/rails/commands.rb:38:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Welchen "Rails" -Befehl führen Sie aus? Was ist der Output von 'which rails'? –
Danke Stuart für die Antwort. Ich antwortete unten. – polarcare