2011-09-01 51 views
2

確定我試圖運行「軌道控制檯」的命令,但這裏就是我得到:如何安裝「的ReadLine」鋼軌控制檯

/home/user/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/irb/completion.rb:10:in `require': no such file to load -- readline (LoadError) 
    from /home/user/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/irb/completion.rb:10 
    from /home/user/.rvm/gems/ruby-1.8.7-p352/gems/railties-3.1.0/lib/rails/commands/console.rb:3:in `require' 
    from /home/user/.rvm/gems/ruby-1.8.7-p352/gems/railties-3.1.0/lib/rails/commands/console.rb:3 
    from /home/user/.rvm/gems/ruby-1.8.7-p352/gems/railties-3.1.0/lib/rails/commands.rb:37:in `require' 
    from /home/user/.rvm/gems/ruby-1.8.7-p352/gems/railties-3.1.0/lib/rails/commands.rb:37 
    from script/rails:6:in `require' 
    from script/rails:6 

我怎麼能安裝「的ReadLine」,並使其發揮作用?已更改爲RVM PKG

+2

使用谷歌第一 - > http://stackoverflow.com/questions/4385549/no-such -file-to-load-readline –

回答

6

RVM包裝

這將是很好,如果錯誤只是告訴我們這!啊!

10

我知道這太晚了。

沒有這樣的文件加載 - 的ReadLine(LoadError)

嘗試加入gem ’rb-readline’到您的Gemfile)

+0

嘿,很好,像一個迷人的工作! –