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

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

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

3 comments:

Unknown said...

Thanks much! That fixed my problem getting Rails to run on my OLPC!

I didn't find this solution anywhere else...

Xander R. Solis said...

@cosmolee Thanks for dropping by and the comment.

Nbnds said...

Worked for me! same error message on Fedora 11. lot of thanks !