Leopard LoadError: no such file to load — sqlite3

I’m not quite sure why this happened, but I kept getting this error with Leopard and sqlite3:

LoadError: no such file to load -- sqlite3

I tried to gem install and uninstall sqlite3-ruby a few times but that didn’t work out. However, installing from source did. Head on over to the Rubyforge page and download the zip or tgz archive. Extract it and just run:

ruby setup.rb

After that requiring sqlite3 should work fine.