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.
This was very helpful. Thank you very much.
Same thing happened to me today. Strange. Did you also update your Rails gems to 2.2.2?
@Nick Thanks!
@Jeremy I did update the Rails gems but I’m not sure how long this has been broken.
Had this problem too, after updating the Rails gems to 2.2.2. Your solution worked perfectly, thanks!
adding the following to my environment.rb fixed this same issue:
config.gem ‘sqlite3-ruby’, :lib => ‘sqlite3’
Worked like a charm!
You post just keeps on giving. Thanks from me, as well.
If you tried to load sqlite3 (gems) by require ‘sqlite3′ in your source code, you need to put require ‘rubygems’ first – i mean above require ‘sqlite’…
You are my hero right now.
You are my hero.
Helped me too, thanks!
Thanks, I was banging my head on the wall until I got this hint