Question

I am following a ruby on rails tutorial. I have not been able to find an answer that works for this problem yet. I am on Windows 8 running Ruby 2.0 what could be causing this?

$ rake db:create
rake aborted!
cannot load such file -- sqlite3/sqlite3_native

Any possible fixes?

Was it helpful?

Solution

I was able to fix this by simply installing the latest versions on the SQLite3 and Eventmachine gems: https://rubygems.org/gems/eventmachine http://rubygems.org/gems/sqlite3-ruby

OTHER TIPS

If you have extracted "exe"s and "dll"s from Sqlite download link to Ruby's bin folder and still have this problem. Try this:

bundle update

gem uninstall sqlite3

Given a choice between multiple versions of sqlite3, choose last option 'All versions'. Enter last number here

Select gem to uninstall:
1. sqlite3-1.3.13
2. sqlite3-1.3.13-x64-mingw32
3. All versions
>3 .
.
If you remove this gem, these dependencies will not be met.
Continue with Uninstall? [yN]
> y

gem install sqlite3 --platform=ruby

rails db:create

This should work.

Read through this link for more explanation if above works for you.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top