no such file to load — sqlite3 on Rails 2.2

I was getting “no such file to load — sqlite3″ error on my Mac when I tried to “rake db:create” on my brand new app. I couldn’t even load sqlite3 from irb.

Turns out, do_sqlite3 gem that came with Merb caused this problem. The solution is to get rid of this gem by running “sudo gem uninstall do_sqlite3″. However, if you’re running JRuby and have Merb installed, this won’t work.

Comments

2 Responses to “no such file to load — sqlite3 on Rails 2.2”

  1. raffil on January 9th, 2009 5:59 am

    I got the same error message on Windows. What do I do?

  2. Joon on January 9th, 2009 10:05 am

    I’m sorry, but I don’t have a Windows machine to test this. My Windows VMs are used for Windows development only.

    Can anyone else help?

Powered by Olark