ruby 1.9 irb rails console不能用readline问题

问题现象就是引用Readline was unable to be required, if you need completion or history install readline then reinstall the ruby.You may follow ‘rvm notes’ for dependencies and/or read the docs page https://rvm.beginrescueend.com/packages/readline/ . Be sure you ‘rvm remove X ; rvm install X’ to re-compile your ruby with readline support after obtaining the readline libraries.标准的解决办法是https://rvm.beginrescueend.com/packages/readline/问题是我一进行到这一步就有问题

$ cd $HOME/.rvm/src/ruby-1.9.2-p0/ext/readline$ ruby extconf.rb -- --with-readline-dir="$HOME/.rvm/usr"

引用checking for tgetnum() in -lncurses… yeschecking for readline/readline.h… yeschecking for readline/history.h… yeschecking for readline() in -lreadline… no后来发现两个问题:1. 路径

ruby extconf.rb -- --with-readline-dir='/home/ra/.rvm/usr/include/readline'

一个是没有装

sudo aptitude install libreadline-dev

不论你在什么时候结束,重要的是结束之后就不要悔恨

ruby 1.9 irb rails console不能用readline问题

相关文章:

你感兴趣的文章:

标签云: