no such file to load - sqlite3
no such file to load -- sqlite3
问题描述:
初学ruby 按照《 Ruby on Rails实践》操作,到 cotroller 测试时报错
页面:
We're sorry, but something went wrong.
We've been notified about this issue and we'll take a look at it shortly.
日志:
no such file to load -- sqlite3
问题分析:
ruby 程序默认配置了使用sqlite3作为数据库,但是没有加入驱动!(可查看config/database.yml)
解决问题:
1、安装驱动
gem install sqlite3-ruby
2、windows 缺少sqlite3.dll
下载并copy到system32下
ok问题基本解决