Defect #10977

Redmine shouldn't require all database gems

Added by George Xie over 9 years ago. Updated almost 9 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:


Category:Third-party libraries
Target version:2.3.0
Resolution:Fixed Affected version:


Among sqlite/postgresql and mysql, only one is needed of the three per installation, but ./Gemfile require all of them.
mysql is used in my installation, and I don't want introduce necessary libs, I have to comment those pg/sqlite lines.
I'm not familiar with ruby gems, but I think there is a way to avoid this.


#1 Updated by Etienne Massip over 9 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

As specified in RedmineInstall, you simply have to exclude the unnecessary driver gems when creating your bundle using the --without <...> option.

#2 Updated by Daniel Black almost 9 years ago

and now it seems it just installs those listed in your database.yml

#3 Updated by Jean-Philippe Lang almost 9 years ago

  • Subject changed from Shouldn't require all three kinds db driver to Redmine shouldn't require all database gems
  • Category set to Third-party libraries
  • Assignee set to Jean-Philippe Lang
  • Target version set to 2.3.0
  • Resolution changed from Invalid to Fixed

Indeed, bundle install will now only install the database gems that are in use in your database.yml.

Also available in: Atom PDF