I\'ve installed rvm as a way of making sure that my local development version of ruby is the same as my server\'s for a particular app i work on (ruby 1.8.7). I\'ve done th
Tried gem install rb-readline
Still did not work. So started irb and did a require readline. The error message helped.
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.io/packages/readline/ . Be sure you 'rvm remove X ; rvm install X' to re-compile your ruby with readline support after obtaining the readline libraries.
1.9.3p327 :001 > require 'readline'
LoadError: /usr/local/lib/libreadline.so.6: undefined symbol: UP - /home/sudhir/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/x86_64-linux/readline.so
from /home/sudhir/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/sudhir/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from (irb):1
from /home/sudhir/.rvm/rubies/ruby-1.9.3-p327/bin/irb:16:in `'
1.9.3p327 :002 > ^[[6^[[A^[[A^[[B^C^C
So the problem in my case was all the libreadline* in /usr/local/lib. I had installed readline from source code and that was messing it up.
Followed the instructions here to fix it. http://vkarthickeyan.wordpress.com/2012/02/16/mysql-symbol-lookup-error-usrlocalliblibreadline-so-6-undefined-symbol-up/