Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Development Tools Installing a Ruby Development Environment Installing a Ruby Development Environment Installing Ruby on Windows

Amanda Smith
Amanda Smith
3,079 Points

Cannot load sqlite3/sqlite3_native during ruby install


I am watching the Installing Ruby on Windows video, and I did fine with the install up until I created the 'testapp'. When I treid to create it with the 'bundle exec rails server' command, I received the error "Cannot load such file -- sqlite3/sqlite3/sqlite3_native <LoadError>.

Would I have configured something wrong to get this error?


Jeff Lemay
Jeff Lemay
14,266 Points

Not sure specifically but it seems odd that you have a "sqlite3" folder inside a "sqlite3" folder.

2 Answers

Amanda Smith
Amanda Smith
3,079 Points

Hi all,

For whatever reason, the problem was fixed by uninstalling Ruby 2.2.2 and installing Ruby 2.0.

Thanks for all of the help!

Thanks for the tip!

It seems that it may be either an issue with your windows $path variable, or an issue with your sqlite3 gemspecs...

These links may help:

  1. cannot load such file — sqlite3/sqlite3_native (LoadError) on ruby on rails
  2. Error “no such file to load” — sqlite3/sqlite3_native (LoadError)