Problem when i try to bundle install after I gem install Nokogiri

43 views
Skip to first unread message

Amrul

unread,
Oct 15, 2015, 9:29:14 AM10/15/15
to nokogiri-talk
Hi, 

I followed your instruction inside the nokogiri website. I don't have any problem when installing Nokogiri. I'm using Mac btw. I don't face any error when gem install nokogiri. But then after I put gem "fog", "~> 1.3.1 in my gemfile, then I ran bundle install. It gave me this error "Bundler could not find compatible versions for gem "nokogiri".. I have attached the screenshot for reference. I'm kinda new to this. Thank you for your help.
Screen Shot 2015-10-15 at 9.14.24 PM.png

Mike Dalessio

unread,
Oct 15, 2015, 9:54:35 AM10/15/15
to nokogiri-talk
Hi Amrul,

Thanks for asking this question!



On Thu, Oct 15, 2015 at 9:21 AM, Amrul <amr...@gmail.com> wrote:
Hi, 

I followed your instruction inside the nokogiri website. I don't have any problem when installing Nokogiri. I'm using Mac btw. I don't face any error when gem install nokogiri. But then after I put gem "fog", "~> 1.3.1 in my gemfile, then I ran bundle install. It gave me this error "Bundler could not find compatible versions for gem "nokogiri".. I have attached the screenshot for reference.

Thanks for sending the screenshot!

The root cause here is that Rails depends on "nokogiri ~> 1.6.0", which means "any version of nokogiri that starts with '1.6'", while Fog depends on "nokogiri ~> 1.5.0", which means "any version of nokogiri that starts with '1.5'."

Because these two requests are mutually incompatible, Bundler is giving up trying to satisfy the requirements.

There's an issue filed with fog that seems related:


Maybe follow up with the fog maintainers about getting a Rails 4.2-compatible version of fog released?

 
I'm kinda new to this. Thank you for your help.

Not at all -- providing the output that you're seeing is an important step that many experienced developers forget to do. Thank you for providing it!

And good luck!

-m

 

--
You received this message because you are subscribed to the Google Groups "nokogiri-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nokogiri-tal...@googlegroups.com.
To post to this group, send email to nokogi...@googlegroups.com.
Visit this group at http://groups.google.com/group/nokogiri-talk.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages