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.
require:cannot load such file -- sqlite3/sqlite3_native (load error) I keep getting this error
I keep getting this error I also got it in the testapp stage I cannot get it to load in local host.
Daniel Cunningham21,109 Points
A few things could be causing the error. There could be an issue with the SQLite gem that you're calling for your project. Here's a similar error that was found on another forum. If that fix doesnt work, post the exact text of the error, and maybe we can get closer to the solution. Good luck!
Tjitze de Boer4,947 Points
I have the same error and can't get the proposed fixes on stackoverflow to work for me. Here's the whole thing that I get back when trying to set things up..:
C:\Users\radia\Documents\testapp>bundle exec rails server
require': cannot load such file -- sqlite3/sqlite3_native (LoadError)
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.11-x86-mingw32/lib/sqlite3.rb:6:inrescue in <top (required)>'
block (2 levels) in require'
block in require'
block in server'
from bin/rails:4:in `<main>'