Quantcast
Channel: Vinsol - Ruby on Rails, iOS, Android Consulting and Development » linux
Viewing all articles
Browse latest Browse all 6

How to make arrow keys working in irb in Linux/Ubuntu

$
0
0

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!!


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images