Skip to content

Instantly share code, notes, and snippets.

@anlek
Created August 26, 2013 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anlek/6346921 to your computer and use it in GitHub Desktop.
Save anlek/6346921 to your computer and use it in GitHub Desktop.
Can't install carrierwave-mongoid due to a dependency on Mongoid 3.0.1 but the gemspec file says otherwise.
Bundle install/update:
Bundler could not find compatible versions for gem "mongoid":
In Gemfile:
carrierwave-mongoid (~> 0.6.2) ruby depends on
mongoid (~> 3.0.1) ruby
mongoid (4.0.0)
https://rubygems.org/gems/carrierwave-mongoid says:
Runtime Dependencies
carrierwave < 0.10.0, >= 0.8.0
mongoid < 5.0, >= 3.0
mongoid-grid_fs ~> 1.3
No idea what's wrong. I've upgraded `bundler` and `gem` to the latest version but didn't help
@anlek
Copy link
Author

anlek commented Aug 26, 2013

Ended up that I needed to add this to my gemfile (even if you're not using grid-fs):
gem 'mongoid-grid_fs', github: 'ahoward/mongoid-grid_fs'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment