Wednesday, March 18, 2009

Rake error - no such file to load -- sqlite3 on Fedora 10

I encountered this error as I was trying to do a rake db:migrate:

[root@julia migrate]# rake db:migrate
(in /home/xander/tickets)
rake aborted!
no such file to load -- sqlite3

Apparently, the sqlite3 gem needs to be installed in Fedora 10. After installation, the migration went smoothly.

[root@julia migrate]# yum install rubygem-sqlite3-ruby

Running Transaction
Installing : rubygem-sqlite3-ruby 1/1

rubygem-sqlite3-ruby.i386 0:1.2.4-1.fc10

[root@julia migrate]# rake db:migrate
(in /home/xander/tickets)
== CreateTickets: migrating ==================================================
-- create_table(:tickets)
-> 0.0035s
== CreateTickets: migrated (0.0039s) =========================================