"sqlite3.h" missing when pushing Rails app to Heroku "sqlite3.h" missing when pushing Rails app to Heroku sqlite sqlite

"sqlite3.h" missing when pushing Rails app to Heroku


gem 'sqlite3', :group => [:development, :test]group :production do  gem 'pg'end
  1. edit Gemfile as above
  2. remove Gemfile.lock
  3. run bundle install --without production
  4. git add .
  5. git commit -am "bundle updating sqlite3"
  6. git push heroku master


Heroku uses postgresql so you want to remove sqlite3 or move it into a development group in your Gemfile.

Check you Gemfile.lock for any other gems that may have dependencies on sqlite3, as this can also cause problems.


I had a similar problem and I wasn't even using sqlite3 for anything but after removing it from the gem file I still got that error

what solved it for me was a commit command

git commit -am 

that I found on this tutorial