How to make arrow keys working in irb in Linux/Ubuntu
It was ruining all my mood and concentration when i was trying some sample ruby code in irb and again and again i had to retype the things because the arrow keys were not working there. I searched the problem on net and found that i need to have readline library on my linux and in ruby as well. Now the point is readline should be available on the linux before you compile ruby so as you can give the readline option while compiling ruby. BUT we have ruby already installed !! Now What ?
Now, first you will need to install system based readline libraries as
If you are not able to install linux based readline with the above method the refer this for more details.
Now you will need to compile the ruby based readline interface to let you readline library available in irb.
Do it by this…
thats it, all done!!
Try your tips on arrow keys in irb, it should work now.
enjoy!!


Working with Vinsol has been one of the most rewarding and productive collaborations I've ever had in the technology industry. Manik is an intelligent and honest engineer with a great faculty for open and clear communication, and his team include some of the swiftest and keenest developers I've ever had the pleasure to work with. They're great value for money, excellent people who are a joy to know and interact with, and above all they really know their stuff