Remove sqlite dependencies from Gemfile
Created by: Razer6
I tried installation with postgres DB on a fresh Debian VM. Installation gems failed with
sudo -u gitlab -H bundle install --deployment --without development test mysql
because there are still dependencies to sqlite
in the Gemfile:
# Supported DBs
gem "sqlite3", group: :sqlite
gem "mysql2", group: :mysql
gem "pg", group: :postgres
Since the fresh Debian VM has no sqlite installation stopped with:
Installing sqlite3 (1.3.6) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
checking for sqlite3.h... no
sqlite3.h is missing. Try 'port install sqlite3 +universal'
or 'yum install sqlite-devel' and check your shared library search path (the
location where your sqlite3 shared library is located).
Installing gems without sqlite worked:
sudo -u gitlab -H bundle install --deployment --without development test mysql sqlite