no such file to load — readline

前端 未结 6 1586
有刺的猬
有刺的猬 2020-12-01 02:09

I am getting the following error:

$script/console
Loading development environment (Rails 2.2.2)
/opt/ruby-enterprise-1.8.6-20080709/lib/ruby/1.8/irb/completi         


        
6条回答
  •  我在风中等你
    2020-12-01 02:45

    Run the command

    rvm requirements
    

    It shows the requirements and dependencies. Install those and reinstall the ruby on rvm

    rvm remove 1.9.2
    rvm install 1.9.2
    

    It works!

    EDIT

    If you can't find the requirements option update your rvm.

    rvm update --head  # older rvm
    

    or use rvm upgrade

提交回复
热议问题