创建pod后,我尝试通过运行:
来设置管理员用户DB=postgres bundle exec rails console production
但是失败了:
/home/diaspora/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/irb/completion.rb:9:in `require': cannot load such file -- readline (LoadError)
from /home/diaspora/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/irb/completion.rb:9:in `<top (required)>'
from /home/diaspora/.rvm/gems/ruby-2.0.0-p481@diaspora/gems/railties-3.2.18/lib/rails/commands/console.rb:3:in `require'
from /home/diaspora/.rvm/gems/ruby-2.0.0-p481@diaspora/gems/railties-3.2.18/lib/rails/commands/console.rb:3:in `<top (required)>'
from /home/diaspora/.rvm/gems/ruby-2.0.0-p481@diaspora/gems/railties-3.2.18/lib/rails/commands.rb:38:in `require'
from /home/diaspora/.rvm/gems/ruby-2.0.0-p481@diaspora/gems/railties-3.2.18/lib/rails/commands.rb:38:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
有谁知道如何解决这个问题?
答案 0 :(得分:3)
您需要安装具有Readline支持的Ruby。查找包libreadline-dev
,libreadline-devel
或类似内容。安装完毕后运行rvm reinstall 2.0
。