Answer the question
In order to leave comments, you need to log in
Can't start rails server, can't find SQLite3 gem, what's the problem?
rails s
/home/ismail/.rbenv/versions/2.6.1/lib/ruby/2.6.0/bundler/gem_helpers.rb:5: warning: already initialized constant Bundler::GemHelpers::GENERIC_CACHE
/home/ismail/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/bundler-2.0.1/lib/bundler/gem_helpers.rb:5: warning: previous definition of GENERIC_CACHE was here
/home/ismail/.rbenv/versions/2.6.1/lib/ruby/2.6.0/bundler/gem_helpers.rb:6: warning: already initialized constant Bundler::GemHelpers::GENERICS
/home/ismail/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/bundler-2.0.1/lib/bundler/gem_helpers.rb:6: warning: previous definition of GENERICS was here
/home/ismail/.rbenv/versions/2.6.1/lib/ruby/2.6.0/bundler/gem_helpers.rb:52: warning: already initialized constant Bundler::GemHelpers::PlatformMatch
/home/ismail/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/bundler-2.0.1/lib/bundler/gem_helpers.rb:52: warning: previous definition of PlatformMatch was here
Could not find gem 'sqlite3' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.
Answer the question
In order to leave comments, you need to log in
From the output.
checking for sqlite3.h... no
sqlite3.h is missing. Try 'brew install sqlite3',
'yum install sqlite-devel' or 'apt-get install libsqlite3-dev'
and check your shared library search path (the
location where your sqlite3 shared library is located).
Try setting the gemfile to a specific version of sqlite3 (Ex: gem 'sqlite3', '~> 1.3.6') and run bundle install.
And check if exactly no version of sqlite3 is installed ($ sqlite3 -v). If installed, then remove specifying the version.
I did not want to work with 1.4.0.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question