"community_engine (>= 0) ruby depends on paperclip (~> 2.4.3) ruby" ... I'm using paperclip 3.4.1 - paperclip

Trying to get the community engine gem/plugin up and running. Getting error:
Bundler could not find compatible versions for gem "paperclip":
In Gemfile:
community_engine (>= 0) ruby depends on
paperclip (~> 2.4.3) ruby
paperclip (3.4.1)
What do I do if a gem requires/depends on an OLDER version of the paperclip gem? I would guess I'd only have problems if my version was not up to date. Do I need to downgrade my paperclip gem? Looks like the only other version available is 2.7.

You can try installing an older version of the Gem like this:
sudo gem install paperclip -v 2.4.3

Related

Error: Could not find sqlite3-1.4.0 in any of the sources

I'm currently trying to get a run.rb file going, but I keep getting errors with sqlite3. When I type bundle install, I get this success message:
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...
Using rake 12.3.2
Using concurrent-ruby 1.1.4
Using i18n 1.5.3
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 5.2.2
Using activemodel 5.2.2
Using arel 9.0.0
Using activerecord 5.2.2
Using bundler 2.0.1
Using coderay 1.1.2
Using equatable 0.5.0
Using method_source 0.9.2
Using mustermann 1.0.3
Using necromancer 0.4.0
Using tty-color 0.4.3
Using pastel 0.7.2
Using pry 0.12.2
Using rack 2.0.6
Using rack-protection 2.0.5
Using require_all 2.0.0
Using tilt 2.0.9
Using sinatra 2.0.5
Using sinatra-activerecord 2.0.13
Using sqlite3 1.4.0
Using timers 4.3.0
Using tty-cursor 0.6.0
Using tty-screen 0.6.5
Using wisper 2.0.0
Using tty-reader 0.5.0
Using tty-prompt 0.18.1
Bundle complete! 7 Gemfile dependencies, 32 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
However, when running ruby app/run.rb I get this message:
Could not find sqlite3-1.4.0 in any of the sources
I've been trying for hours to figure out what the issue is, I've uninstalled and reinstalled sqlite3, bundle installed a million times, and nothing seems to be working. Any ideas would be much appreciated!
For Rails 5.2.2 you can sort out this problem by specifying proper version of sqlite3 in your Gemfile:
gem 'sqlite3', '~> 1.3.6'
In 5-2-stable branch of Rails you can use sqlite 1.4, but in the 5.2.2 it causes the error.
I had the same error and fixed it by:
First, I opened up the Gemfile in atom and changed the line gem 'sqlite3' to gem 'sqlite3' , '~>1.3.6'.
Second, I ran gem install sqlite3 -v 1.3.6 on terminal.
Last, I ran bundle install on terminal.
This worked for me... goodluck!
You can try installing the libsqlite3-dev package:
sudo apt-get install -y sqlite3 libsqlite3-dev
or
gem 'sqlite3', '~> 1.3', '>= 1.3.11'
I had the same issue and found that I didn't need sqlite to run my app.
So, I opened the Gemfile and deleted gem 'sqlite3' ... from it and everything worked fine.

Bundler could not find compatible versions for gem even if I change versions

I am trying to update to the latest google vision, and so I add in Gemfile:
gem 'google-cloud-vision', '~> 0.28.0'
But when I run bundle install, I get the following error:
Bundler could not find compatible versions for gem "faraday": In
Gemfile:
google-cloud-vision (~> 0.28.0) ruby depends on
google-cloud-core (~> 1.2) ruby depends on
google-cloud-env (~> 1.0) ruby depends on
faraday (~> 0.11) ruby
forecast_io (>= 0) ruby depends on
faraday (0.9.2)
I tried using the latest version of forecast too:
gem 'forecast_io', '~> 2.0', '>= 2.0.2'
I understand that two different gems require two different versions of faraday. But isn't bundler supposed to resolve this?
According to bundler documentation
Update the gems specified (all gems, if none are specified), ignoring the previously installed gems specified in the Gemfile.lock. In general, you should use bundle install(1) to install the same exact gems and versions across machines.
You would use bundle update to explicitly update the version of a gem.
So use bundle update google-cloud-vision for update gem to new version.

How to install newest version of gems not mentioned in Gemfile.lock with bundler

When I add a gem to a project's Gemfile for the first time, but I have installed the gem previously while working on another project, it uses the existing version of the gem, rather than the latest version of the gem available.
For example, using bundler version 1.11.2, I added gem 'rubocop' to a project's Gemfile, and running bundle install resulted in it using RuboCop version 0.42.0, rather than the current (as of 21 October 2016) version of 0.44.1:
rubocop (0.42.0)
parser (>= 2.3.1.1, < 3.0)
powerpack (~> 0.1)
rainbow (>= 1.99.1, < 3.0)
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.0, >= 1.0.1)
Running bundle update rubocop resulted in version 0.44.1 being used, without any pre-existing gems having their version changed. This indicates there weren't any constraints shopping me from using RuboCop version 0.44.1.
rubocop (0.44.1)
parser (>= 2.3.1.1, < 3.0)
powerpack (~> 0.1)
rainbow (>= 1.99.1, < 3.0)
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.0, >= 1.0.1)
When running bundle install, how can I tell it, for gems that aren't mentioned in Gemfile.lock, to download the newest compatible version of the gem, rather than use an older version which happens to be available on the local machine?
I tried looking at http://bundler.io/v1.13/man/bundle-install.1.html but nothing there seemed to be relevant.
If you want to have newest version gem, remove version in Gemfile and run bundle install again.

Bundler could not find compatible versions for gem "excon" for gem mandrill-api

I'm getting this error when trying to install bundle. I have both versions '0.15.4' and '0.25.1' of gem excon in my gemset. How can I fix this?
Bundler could not find compatible versions for gem "excon":
In Gemfile:
mandrill-api (>= 0) ruby depends on
excon (~> 0.15.4) ruby
fog (~> 1.10.1) ruby depends on
excon (0.25.1)
I deleted my Gemfile.lock, if that doesn't work try running gem update excon and check that you have the version installed with gem list | grep excon for the correct version.
Given the age of this, I suspect you have likely found an answer. That said, I think if you update fog you should have better luck. Sorry for the difficulty.

could not find gem 'tenderlove-frex' when installing the gem melomel. where can i find this gem?

I am trying to install the gem melomel for testing in actionscript. When i require it in my gemfile and bundle update, i get an error saying that it cant find the gem tenderlove-frex and outputs this message:
Could not find gem 'tenderlove-frex (>= 0) ruby', which is required by gem 'spree (>= 0) ruby', in any of the sources.Bundler could not find compatible versions for gem "nokogiri":
In Gemfile:
spree (>= 0) ruby depends on
nokogiri (~> 1.5.0) ruby
spree (>= 0) ruby depends on
nokogiri (1.0.0)
When i remove melomel form my gemfile, bundle updates fine. I have looked all over online and it seems like every location where its been hosted has removed the gem.
Where can I get this gem? i am using ruby 1.9.3.
The frex gem is not hosted on the typical Gemcutter.
To get it, add GitHub to your gem sources:
gem sources -a http://gems.github.com
Then try installing the gem as usual:
gem install tenderlove-frex
In case it's helpful: tenderlove is the handle of Aaron Patterson, one of the top Ruby developers, and as far as I know he's replaced frex and likely has a better solution you can use. For example, can you update your Nokogiri gem to the current version, and also your Spree gem to the current version? This should remove the need for frex.
To see your versions:
$ gem list melomel
melomel (0.6.6)
$ gem list spree
spree (1.2.2)
spree_api (1.2.2)
spree_cmd (1.2.2)
spree_core (1.2.2)
spree_dash (1.2.2)
spree_promo (1.2.2)
spree_sample (1.2.2)
To update:
$ bundle update
To see dependency list for Nokogiri:
$ gem dependency nokogiri

Resources