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 trialanthonybrackner
17,776 PointsGetting Sqlite Error after entering "bin/rails server"
I am on windows, using the Ubuntu command prompt. After entering "bin/rails server", I get the following error: #<LoadError: Error loading the 'sqlite3' Active Record adapter. Missing a gem it depends on? can't activate sqlite3.
Any ideas on how to fix this?
1 Answer
anthonybrackner
17,776 PointsThanks obi, managed to get this one straightened out.
obi
742 Pointsobi
742 PointsI had a similar problem, though not exactly the same (am on MacOS). My server would boot up, but trying to load a page would result in:
Gem::LoadError (Specified 'sqlite3' for database adapter, but the gem is not loaded. Add
gem 'sqlite3'to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).):
This reddit post helped me:
https://www.reddit.com/r/rails/comments/ap36xe/specified_sqlite3_for_database_adapter_but_the/
In my case, the following steps worked:
gem 'sqlite3'
withgem 'sqlite3', '~> 1.3.0 '
in your Gemfilebundle install
again