Why do I get a Readline error when trying to start rails console?

我的梦境 提交于 2019-12-04 12:40:37
mpapis

Please read the output of:

rvm requirements

It will show you list of libraries you need to install to make good use of Ruby

After installing all the libs, clean rvm installed libs and reinstall Ruby:

rm -rf $rvm_path/usr
rvm reinstall 1.9.3
jupp0r

You need to install the readline development packages. (This is how my answer differs from the other existing one):

apt-get install libreadline-dev

After doing so, you can reinstall Ruby (as @mpapis already mentioned) and everything should work.

rvm reinstall 1.9.3
izhu613

I had a similar issue. try

brew link readline --force

that worked for me.

I got the solution from here:

Rails Console Not Loading

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!