Forum: Ruby Up and down keys not working in IRB

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
B0727a05f07f55e378a9c951d668fd6c?d=identicon&s=25 Frank Church (vfcforums)
on 2007-06-18 13:40
The up and down keys need to get the command history is not working in

They produce ^[[A, ^[[B, ^[[C etc. I am connecting over PuTTY to Fedora
6and I wonder whether the problem is in IRB.

If after logging in to the Fedora 6 account, I login to my dreamhost
account and run IRB the keys work fine. I compiled the ruby with
readline and I suspect that something didn't go right.

Is there some way of checking it?
289cf19aa581c445915c072bf45c5e25?d=identicon&s=25 Todd Benson (Guest)
on 2007-06-18 18:20
(Received via mailing list)
On 6/18/07, Frank Church <> wrote:
> Is there some way of checking it?

Replace /usr/local/build/ruby-1.8.6 with your ruby build directory

$ irb
irb(main):001:0> $LOADED_FEATURES.grep /readline/
=> [""]
irb(main):002:0> require 'readline'  #already loaded, so should return
=> false
irb(main):003:0> exit
$ less /usr/local/build/ruby-1.8.6/ext/readline/mkmf.log

This topic is locked and can not be replied to.