Ruby 1.9.2 and Rails 3 cannot open rails console

前端 未结 10 1993
野性不改
野性不改 2020-12-01 06:04
[gkaykck@main myApplication]$ rails console
/usr/local/lib/ruby/1.9.1/irb/completion.rb:9:in `require\': no such file to load -- readline (LoadError)
    from /usr/l         


        
10条回答
  •  孤城傲影
    2020-12-01 06:42

    Recipe for those who use rvm:

    rvm pkg install readline
    rvm remove 1.9.3
    rvm install 1.9.3 --with-readline-dir=$rvm_path/usr
    

    In more details about it on https://rvm.io/packages/readline/

提交回复
热议问题