0

我在 Opensuse 上安装了 ruby​​ 2.0.0 和 rails 4.0.0,但 rails 控制台不起作用。我有这个错误信息:

/home/zellou_i/.rubies/ruby-2.0.0-p247/lib64/ruby/2.0.0/irb/completion.rb:9:in `require': cannot load such file -- readline (LoadError)
    from /home/zellou_i/.rubies/ruby-2.0.0-p247/lib64/ruby/2.0.0/irb/completion.rb:9:in `<top (required)>'
    from /home/zellou_i/.gem/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands/console.rb:3:in `require'
    from /home/zellou_i/.gem/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands/console.rb:3:in `<top (required)>'
    from /home/zellou_i/.gem/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:53:in `require'
    from /home/zellou_i/.gem/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:53:in `<top (required)>'
    from bin/rails:4:in `require'
    from bin/rails:4:in `<main>'

我不明白,我安装了 readline 但他无法加载它。

4

1 回答 1

2

Ruby 需要使用 readline-support 进行编译。确保你安装了 libreadline6 及其开发头文件(debian 特定的包,适应 suse),然后重新编译你的 ruby​​。

于 2013-09-26T12:16:30.450 回答