ruby-oci8 and libaio

Not of concern to most people reading this via a feed, but it’s one of those things I think is nice to write up as a public service, should anyone else encounter the same error. I’m stuck doing some Rails work with Oracle, and so I needed to get ruby-oci8 working:

These instructions are pretty good. I followed them, the gem said it had been installed correctly…. and yet:

ERROR: ActiveRecord oracle_enhanced adapter could not load ruby-oci8 library. Please install ruby-oci8 library or gem.
`establish_connection':RuntimeError: Please install the oracle_enhanced adapter:
`gem install activerecord-oracle_enhanced-adapter` (LoadError)

Argh! After some straceing, I finally figured out what was missing: the libaio1 package. You need to have it or things will fail like this. It’s very odd that the installation doesn’t complain about it.