rails no such file to load — readline

$script/console Loading development environment (Rails 2.2.2) /opt/ruby-enterprise-1.8.6-20080709/lib/ruby/1.8/irb/completion.rb:10:in `require': no such file to load -- readline (LoadError)



On Debian/Ubuntu:

apt-get install libreadline-dev 

Or on RHEL/CentOS, try

yum install readline-devel

然后 cd ../ext/readline

execue ruby extconf.rb

make && make install

你可能感兴趣的:(Rails)