I'm using Ubuntu Server 10 lucid, ruby 1.9.2-p0. In irb, the left arrow shows ^[[D
. Any idea?
You need to do:
sudo apt-get install libreadline-dev
and then reinstall ruby and irb.
Alternatively, if you are using RVM, just remember to install readline:
rvm pkg install readline
rvm install 1.9.3 --with-readline-dir=$rvm_path/usr
Over the apt package, this has the advantage of giving you the 1.9.3 version, which IMHO is more stable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With