Skip to content

version conflict in gem mime-types #282

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
oliwel opened this issue Sep 29, 2014 · 7 comments
Closed

version conflict in gem mime-types #282

oliwel opened this issue Sep 29, 2014 · 7 comments
Assignees
Labels

Comments

@oliwel
Copy link

oliwel commented Sep 29, 2014

Tried installing v.0.7.8 according to the howto (check out redmine_bootstrap_kit and redmine_git_hosting, run bundle) with ruby1.9 and rails-3.2.19. Running bundler results in:

Bundler could not find compatible versions for gem "mime-types":
  In Gemfile:
    jbox-gitolite (~> 1.2.6) ruby depends on
      mime-types (~> 1.15) ruby

    mime-types (2.3)
@n-rodriguez
Copy link
Contributor

Hi there! Thanks for your feedback!

This comes from a gem dependency : gitlab-grit.
Redmine also mentions mime-types in his Gemfile, but whithout specifying the version.
So this may come from another Redmine plugins you have installed.
A grep mime-types */Gemfile in Redmine plugins dir will help you to find the culprit.

@n-rodriguez n-rodriguez self-assigned this Sep 29, 2014
@oliwel
Copy link
Author

oliwel commented Sep 30, 2014

I dont have any other plugins installed. It is a vanilla install from the current (2.5.2) tarball plus your bootstrap kit and the git plugin. The only occurence of the mime-types gem is in the redmine Gemfile (without version as you already mentioned)

@n-rodriguez
Copy link
Contributor

I cannot reproduce this issue (with about 25 plugins installed, I've never had such issue).

@oliwel
Copy link
Author

oliwel commented Jan 11, 2015

Tried a new setup, problem is reproducible =(

  1. Use a plain gentoo image with ruby2.1 installed
  2. Download and extract redmine-2.1.5 tarball from website
  3. run redmine howto (bundle install + create db)
  4. clone redmine_bootstrap_kit redmine_git_hosting
  5. checkout v0.7.9
  6. run installer
apache@busix ~/redmine/plugins/redmine_git_hosting $ git checkout v0.7.9 
Gewechselt zu Branch 'v0.7.9'
Ihr Branch ist auf dem selben Stand wie 'origin/v0.7.9'.
apache@busix ~/redmine/plugins/redmine_git_hosting $ cd ../..
apache@busix ~/redmine $ bundle install --without development test rmagick
Your Gemfile lists the gem redcarpet (~> 2.3.0) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of just one of them later.
Fetching gem metadata from https://rubygems.org/.......
Resolving dependencies...
Bundler could not find compatible versions for gem "mime-types":
  In Gemfile:
    jbox-gitolite (~> 1.2.6) ruby depends on
      gitlab-grit (>= 2.7.1, ~> 2.7) ruby depends on
        mime-types (~> 1.15) ruby

    mime-types (2.4.3)

@n-rodriguez
Copy link
Contributor

Great! But Redmine 2.1.5 is not maintained anymore...

@oliwel
Copy link
Author

oliwel commented Jan 11, 2015

sorry - ruby 2.1.5, redmine 2.6.1

@n-rodriguez
Copy link
Contributor

With :

  • Redmine 2.6.1 (fresh install)
  • Redmine Git Hosting 0.7.10 (fresh install)
  • RVM 1.26.9 (fresh install)
  • Debian Wheezy 7.8
redmine@dev:~/redmine$ ruby --version
ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-linux]
redmine@dev:~/redmine$ bundle install --without development test rmagick
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...
Installing rake 10.4.2
Installing i18n 0.6.11
Installing multi_json 1.10.1
Installing activesupport 3.2.21
Installing builder 3.0.4
Installing activemodel 3.2.21
Installing erubis 2.7.0
Installing journey 1.0.4
Installing rack 1.4.5
Installing rack-cache 1.2
Installing rack-test 0.6.3
Installing hike 1.2.3
Installing tilt 1.4.1
Installing sprockets 2.2.3
Installing actionpack 3.2.21
Installing mime-types 1.25.1   <---------- mime-types gem
Installing polyglot 0.3.5
Installing treetop 1.4.15
Installing mail 2.5.4
Installing actionmailer 3.2.21
Installing arel 3.0.3
Installing tzinfo 0.3.42
Installing activerecord 3.2.21
Installing activeresource 3.2.21
Using bundler 1.7.6
Installing coderay 1.1.0
Installing rack-ssl 1.3.4
Installing json 1.8.2
Installing rdoc 3.12.2
Installing thor 0.19.1
Installing railties 3.2.21
Installing jquery-rails 3.1.2
Installing mysql2 0.3.17
Installing net-ldap 0.3.1
Installing ruby-openid 2.3.0
Installing rack-openid 1.4.2
Installing rails 3.2.21
Installing rbpdf 1.18.4
Installing redcarpet 2.3.0
Installing request_store 1.0.5
Your bundle is complete!
Gems in the groups development, test and rmagick were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
Post-install message from rdoc:
Depending on your version of ruby, you may need to install ruby rdoc/ri data:

<= 1.8.6 : unsupported
 = 1.8.7 : gem install rdoc-data; rdoc-data --install
 = 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!

git clone / git checkout v0.7.10

redmine@dev:~/redmine$ bundle install --without development test rmagick
Your Gemfile lists the gem redcarpet (~> 2.3.0) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of just one of them later.
Fetching gem metadata from https://rubygems.org/........
Resolving dependencies...
Using rake 10.4.2
Installing RedCloth 4.2.9
Using i18n 0.6.11
Using multi_json 1.10.1
Using activesupport 3.2.21
Using builder 3.0.4
Using activemodel 3.2.21
Using erubis 2.7.0
Using journey 1.0.4
Using rack 1.4.5
Using rack-cache 1.2
Using rack-test 0.6.3
Using hike 1.2.3
Using tilt 1.4.1
Using sprockets 2.2.3
Using actionpack 3.2.21
Using mime-types 1.25.1   <---------- mime-types gem
Using polyglot 0.3.5
Using treetop 1.4.15
Using mail 2.5.4
Using actionmailer 3.2.21
Using arel 3.0.3
Using tzinfo 0.3.42
Using activerecord 3.2.21
Using activeresource 3.2.21
Installing asciidoctor 1.5.2
Using bundler 1.7.6
Installing hitimes 1.2.2
Installing timers 4.0.1
Installing celluloid 0.16.0
Installing charlock_holmes 0.7.3
Using coderay 1.1.0
Installing connection_pool 2.1.1
Installing creole 0.5.0
Installing diff-lcs 1.2.5
Installing posix-spawn 0.3.9
Installing github-markup 1.3.1
Installing gitlab-grit 2.7.3
Installing gratr19 0.4.4.1
Installing jbox-gitolite 1.2.6
Using rack-ssl 1.3.4
Using json 1.8.2
Using rdoc 3.12.2
Using thor 0.19.1
Using railties 3.2.21
Using jquery-rails 3.1.2
Installing lockfile 2.1.3
Using mysql2 0.3.17
Using net-ldap 0.3.1
Installing rubypants 0.2.0
Installing org-ruby 0.9.12
Using ruby-openid 2.3.0
Using rack-openid 1.4.2
Installing rack-protection 1.5.3
Using rails 3.2.21
Using rbpdf 1.18.4
Using redcarpet 2.3.0
Installing redis 3.2.0
Installing redis-namespace 1.5.1
Using request_store 1.0.5
Installing sidekiq 3.3.0
Installing sinatra 1.4.5
Your bundle is complete!
Gems in the groups development, test and rmagick were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants