readline in Ruby 1.9
If, for example, you’re running Ubuntu, and decided to stop using its half-screwed ruby1.9, install it from source. But you’ve just lost readline support in irb! All the web says you need to ./configure ruby with —with-readline-dir, but it no longer exists.
cd ~/src/ruby1.9-whatever/ext/readline
ruby ./extconf.rb --enable-readline-v6
make && sudo make install
Done. You’ll need libreadline-dev installed.