no such file to load — readline

前端 未结 6 1577
有刺的猬
有刺的猬 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:42

    You need to install the ncurses and readline libraries.

    On Ubunutu you could do

    sudo apt-get install libreadline5-dev libncurses5-dev
    

    and then you will have to recompile readline which comes with your ruby source

    cd /ext/readline
    ruby extconf.rb
    make
    sudo make install
    

    If you are using RVM you could simply do

    rvm package install readline
    

    EDIT:

    On newer RVM versions, this last command is

    rvm pkg install readline
    

提交回复
热议问题