Skip to content
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

gem install beaker fails for ruby 1.9.3 - Unable to resolve dependency nokogiri #304

Closed
marcusphi opened this issue Jun 11, 2014 · 7 comments

Comments

@marcusphi
Copy link

It seems the current beaker version tree is inconsistent:

$ gem install beaker
ERROR:  While executing gem ... (Gem::DependencyError)
    Unable to resolve dependencies: beaker requires nokogiri (= 1.5.10); aws-sdk requires nokogiri (>= 1.4.4); fog requires nokogiri (>= 1.5.11, ~> 1.5); rbvmomi requires nokogiri (>= 1.4.1)

I'm not a ruby programmer, but if I understand things correctly it's impossible to satisfy all of these dependencies at the same time (= 1.5.10, >= 1.5.11). Note that I have none of the mentioned gems installed.

$ruby --version
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.5.0]

Maybe related to #292

@anodelman
Copy link
Contributor

I have been unable to reproduce.

@marcusphi
Copy link
Author

Which version of nokogiri should I use?

@johnduarte
Copy link
Contributor

@marcusphi

Try installing the following gems in the following order:

gem install nokogiri -v 1.5.10
gem install fog -v 1.19.0
gem install beaker -v 1.12.1

These should allow the gem to install.

@johnduarte
Copy link
Contributor

@anodelman

Using the following ruby

ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin12.5.0]

With the following gem set list

*** LOCAL GEMS ***

bigdecimal (1.1.0)
bundler (1.3.6)
io-console (0.3)
json (1.5.5)
minitest (2.5.1)
rake (0.9.2.2)
rdoc (3.9.5)

The nokogiri resolution error will then be displayed as follows

gem install beaker
ERROR:  While executing gem ... (Gem::DependencyError)
    Unable to resolve dependencies: beaker requires nokogiri (= 1.5.10); aws-sdk requires nokogiri (>= 1.4.4); fog requires nokogiri (>= 1.5.11, ~> 1.5); rbvmomi requires nokogiri (>= 1.4.1)

@anodelman
Copy link
Contributor

I created a fresh ruby 1.9.3p448 and successfully installed beaker.

@johnduarte
Copy link
Contributor

@anodelman FYI: I was using crossfader for ruby version management. Mr. Shamow was using rbenv when he saw the error.
When doing a fresh install with rvm on Centos-6 I do not see the conflict.

@anodelman
Copy link
Contributor

I believe that I have the fix here #307.

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

No branches or pull requests

3 participants