How to get Readline support in IRB using RVM on Ubuntu 11.10

前端 未结 12 1741
北恋
北恋 2020-12-07 14:51

I have tried everything I can think of to get this to work, to no avail so here I am requesting suggestions on how to debug.

Firstly, runnning Ubuntu 11.10

I

12条回答
  •  情深已故
    2020-12-07 15:14

    My setup is ubuntu 11.10, RVM 1.10.2, ruby 1.9.3.

    This readline problem was giving errors when running irb, and prevented running of the rails console due to the error:

    'require': cannot load such file -- readline (LoadError)

    The solution that worked for me was the one described by Bryan Larsen, i.e.

    DO NOT pkg install readline, with or without --skip-autoreconf

    Do the apt-get install that rvm requirements tells you to do, then

    rvm --skip-autoreconf pkg uninstall readline

    rvm remove 1.9.3

    rvm install 1.9.3

    Thx for the tip Bryan.

提交回复
热议问题