2012-04-20 188 views
1

我正在使用導軌3.2.1的導軌應用程序。我爲它創建了一個單獨的寶石集並安裝了寶石。到現在每一件事工作得很好,但是當我去軌控制檯我收到以下錯誤:導軌控制檯無法在導軌中工作3.2.1

/home/santosh/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/irb/completion.rbin require': no such file to load -- readline (LoadError) 
from /home/santosh/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/irb/completion.rb:9:in' 
from /home/santosh/.rvm/gems/[email protected]/gems/railties-3.2.1/lib/rails/commands/console.rbin require' 
from /home/santosh/.rvm/gems/[email protected]/gems/railties-3.2.1/lib/rails/commands/console.rb:3:in' 
from /home/santosh/.rvm/gems/[email protected]/gems/railties-3.2.1/lib/rails/commands.rb:38:in require' 
from /home/santosh/.rvm/gems/[email protected]/gems/railties-3.2.1/lib/rails/commands.rb:38:in' 
from script/railsin require' 
from script/rails:6:in' 

瀏覽通過谷歌和嘗試安裝的readline,但沒有用。所以我在哪裏做錯了?

+0

http://stackoverflow.com/questions/4385549/no-such-file也許這會有所幫助。 – zishe 2012-04-20 11:46:11

回答

0

由於使用rvm進行ruby安裝,我有類似的問題。

爲了解決這個問題,我卸載了我的紅寶石版本,我用這個命令裏安裝它:

rvm install 1.9.2 --with-readline-dir=$rvm_path/.rvm/usr

我希望它能幫助