debug rails 3.1.1 application

a 夏天 提交于 2019-12-01 11:23:48

What made is work for me is:

sudo gem install ruby-debug19
gem install linecache19
gem install ruby-debug-base19
bundle update
rails server -u

Did you install all the prerequisites listed in rvm notes before you installed Ruby? I'm not positive, but I think readline is a dependency for MRI on Linux.

You may also follow these instructions from the RVM site:

If you have an error when compiling pertaining to readline, you may need to attempt installing with the procedure defined below.

NOTE: Before you follow the procedure below please be sure to verify that you have installed any dependencies for the Ruby you are installing listed by the 'rvm notes' command. If you have not yet done that do so then run 'rvm remove X ; rvm install X' where X is the Ruby that you are concerned with.

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