An error occurred while installing sqlite3 (1.3.7), and Bundler cannot continue [duplicate]
You cannot use sqlite3 with Heroku. By default, Heroku's Cedar stack uses Postgresql. You need to wrap your sqlite3
gem in a development group and have pg
in your Gemfile.
group :development, :test do gem 'sqlite3'endgem 'pg'
Make sure to run bundle install again after editing the Gemfile so you can push to heroku
Heroku generally doesn't support SQLite as a database engine, mostly because they don't give your app write access to a local file system during runtime as would be required for SQLite.
Instead, you should use PostgreSQL (with the pg
gem) as a database engine as recommended by Heroku.
Try this:
- Open the Gemfile.lock and scroll down to sqlite3 (1.3.x) under 'specs:'
- Make sure it appears only as sqlite3 (1.3.x) with no extra jazz.
- If any extra tags such as "-x86-mingw32" is displayed then delete it.
- Run Bundle Install.
- Then try pushing Heroku master.
Worked for me.