Elton's Blog

no such file to load — sqlite3问题解决

by on 八.23, 2009, under Rails

从rails2.0.2以后,rails默认的数据库是sqlite3了。 所以如果你使用rails appName命令建立应用的话,使用的是sqlite数据库。

作为开发和测试,使用sqlite3数据库倒是可以。如果你在运行应用的时候出现了

1
no such file to load -- sqlite3

这个错误,说明你没有安装sqlite的ruby驱动。 使用以下命令可以安装此驱动

1
sudo gem install sqlite3-ruby

安装成功后,上面的问题就解决了。





:,

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit my friends!

A few highly recommended friends...