Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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

Hi,

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?

Thanks!

Jeff Lemay
Jeff Lemay
14,268 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)