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 installation fail #2

Open
rafael81 opened this issue Dec 5, 2012 · 4 comments
Open

gem installation fail #2

rafael81 opened this issue Dec 5, 2012 · 4 comments

Comments

@rafael81
Copy link

rafael81 commented Dec 5, 2012

Hi, I trying to install vines,vines-agent,vines-services using gem.
I use Ubuntu 12.04

$ sudo yum install -y bash curl git gcc-c++ patch readline
readline-devel zlib zlib-devel libyaml-devel libffi-devel
openssl-devel make bzip2 sqlite sqlite-devel libxslt
libxslt-devel libxml2 libxml2-devel ruby-devel

$ sudo gem install vines vines-agent vines-services
Fetching: i18n-0.6.1.gem (100%)
Fetching: multi_json-1.4.0.gem (100%)
Fetching: activesupport-3.2.9.gem (100%)
Fetching: builder-3.0.4.gem (100%)
Fetching: activemodel-3.2.9.gem (100%)
Fetching: arel-3.0.2.gem (100%)
Fetching: tzinfo-0.3.35.gem (100%)
Fetching: activerecord-3.2.9.gem (100%)
Fetching: bcrypt-ruby-3.0.1.gem (100%)
Building native extensions. This could take a while...
Fetching: eventmachine-1.0.0.gem (100%)
Building native extensions. This could take a while...
Fetching: addressable-2.3.2.gem (100%)
Fetching: http_parser.rb-0.5.3.gem (100%)
Building native extensions. This could take a while...
Fetching: em-socksify-0.2.1.gem (100%)
Fetching: cookiejar-0.3.0.gem (100%)
Fetching: em-http-request-1.0.3.gem (100%)
Fetching: hiredis-0.4.5.gem (100%)
Building native extensions. This could take a while...
Fetching: em-hiredis-0.1.1.gem (100%)
Fetching: bson-1.5.2.gem (100%)
Fetching: mongo-1.5.2.gem (100%)
Fetching: bson_ext-1.5.2.gem (100%)
Building native extensions. This could take a while...
Fetching: net-ldap-0.3.1.gem (100%)
Fetching: nokogiri-1.4.7.gem (100%)
Building native extensions. This could take a while...
Fetching: vines-0.4.5.gem (100%)
Successfully installed i18n-0.6.1
Successfully installed multi_json-1.4.0
Successfully installed activesupport-3.2.9
Successfully installed builder-3.0.4
Successfully installed activemodel-3.2.9
Successfully installed arel-3.0.2
Successfully installed tzinfo-0.3.35
Successfully installed activerecord-3.2.9
Successfully installed bcrypt-ruby-3.0.1
Successfully installed eventmachine-1.0.0
Successfully installed addressable-2.3.2
Successfully installed http_parser.rb-0.5.3
Successfully installed em-socksify-0.2.1
Successfully installed cookiejar-0.3.0
Successfully installed em-http-request-1.0.3
Successfully installed hiredis-0.4.5
Successfully installed em-hiredis-0.1.1
Successfully installed bson-1.5.2
Successfully installed mongo-1.5.2
Successfully installed bson_ext-1.5.2
Successfully installed net-ldap-0.3.1
Successfully installed nokogiri-1.4.7
Successfully installed vines-0.4.5
ERROR: While executing gem ... (Gem::DependencyError)
Unable to resolve dependencies: niceogiri requires nokogiri (~> 1.5)

$ sudo gem install nokogiri

Fetching: nokogiri-1.5.5.gem (100%)
Building native extensions. This could take a while...
Successfully installed nokogiri-1.5.5
1 gem installed
Installing ri documentation for nokogiri-1.5.5...
Installing RDoc documentation for nokogiri-1.5.5...

$ sudo gem install vines vines-agent vines-services
Successfully installed vines-0.4.5
Fetching: niceogiri-1.1.1.gem (100%)
Fetching: blather-0.5.12.gem (100%)
Fetching: systemu-2.5.2.gem (100%)
Fetching: yajl-ruby-1.1.0.gem (100%)
Building native extensions. This could take a while...
Fetching: mixlib-cli-1.2.2.gem (100%)
Fetching: mixlib-config-1.1.2.gem (100%)
Fetching: mixlib-log-1.4.1.gem (100%)
Fetching: ipaddress-0.8.0.gem (100%)
Fetching: ohai-0.6.12.gem (100%)
Fetching: fattr-2.2.1.gem (100%)
Fetching: session-3.1.0.gem (100%)
Fetching: slave-1.3.0.gem (100%)
Fetching: vines-agent-0.1.3.gem (100%)
Successfully installed niceogiri-1.1.1
Successfully installed blather-0.5.12
Successfully installed systemu-2.5.2
Successfully installed yajl-ruby-1.1.0
Successfully installed mixlib-cli-1.2.2
Successfully installed mixlib-config-1.1.2
Successfully installed mixlib-log-1.4.1
Successfully installed ipaddress-0.8.0
Successfully installed ohai-0.6.12
Successfully installed fattr-2.2.1
Successfully installed session-3.1.0
Successfully installed slave-1.3.0
Successfully installed vines-agent-0.1.3
Fetching: citrus-2.4.1.gem (100%)
Fetching: mime-types-1.19.gem (100%)
Fetching: rest-client-1.6.7.gem (100%)
Fetching: couchrest-1.1.3.gem (100%)
Fetching: couchrest_model-1.1.2.gem (100%)
Fetching: sqlite3-1.3.6.gem (100%)
Building native extensions. This could take a while...
Fetching: vines-services-0.1.3.gem (100%)
Successfully installed citrus-2.4.1
Successfully installed mime-types-1.19
Successfully installed rest-client-1.6.7
Successfully installed couchrest-1.1.3
Successfully installed couchrest_model-1.1.2
Successfully installed sqlite3-1.3.6
Successfully installed vines-services-0.1.3
21 gems installed
Installing ri documentation for vines-0.4.5...
Installing ri documentation for niceogiri-1.1.1...
Installing ri documentation for blather-0.5.12...
Installing ri documentation for systemu-2.5.2...
Installing ri documentation for yajl-ruby-1.1.0...
Installing ri documentation for mixlib-cli-1.2.2...
Installing ri documentation for mixlib-config-1.1.2...
Installing ri documentation for mixlib-log-1.4.1...
Installing ri documentation for ipaddress-0.8.0...
Installing ri documentation for ohai-0.6.12...
Installing ri documentation for fattr-2.2.1...
Installing ri documentation for session-3.1.0...
Installing ri documentation for slave-1.3.0...
Installing ri documentation for vines-agent-0.1.3...
Installing ri documentation for citrus-2.4.1...
Installing ri documentation for mime-types-1.19...
Installing ri documentation for rest-client-1.6.7...
Installing ri documentation for couchrest-1.1.3...
Installing ri documentation for couchrest_model-1.1.2...
Installing ri documentation for sqlite3-1.3.6...
Installing ri documentation for vines-services-0.1.3...
Installing RDoc documentation for vines-0.4.5...
Installing RDoc documentation for niceogiri-1.1.1...
Installing RDoc documentation for blather-0.5.12...
Installing RDoc documentation for systemu-2.5.2...
Installing RDoc documentation for yajl-ruby-1.1.0...
Installing RDoc documentation for mixlib-cli-1.2.2...
Installing RDoc documentation for mixlib-config-1.1.2...
Installing RDoc documentation for mixlib-log-1.4.1...
Installing RDoc documentation for ipaddress-0.8.0...
Installing RDoc documentation for ohai-0.6.12...
Installing RDoc documentation for fattr-2.2.1...
Installing RDoc documentation for session-3.1.0...
Installing RDoc documentation for slave-1.3.0...
Installing RDoc documentation for vines-agent-0.1.3...
Installing RDoc documentation for citrus-2.4.1...
Installing RDoc documentation for mime-types-1.19...
Installing RDoc documentation for rest-client-1.6.7...
Installing RDoc documentation for couchrest-1.1.3...
Installing RDoc documentation for couchrest_model-1.1.2...
Installing RDoc documentation for sqlite3-1.3.6...
Installing RDoc documentation for vines-services-0.1.3...

vines works!

$ vines
Usage: vines [options] start|stop|restart|init|bcrypt|cert|ldap|schema

Daemon options:
-d, --daemonize Run daemonized in the background
-l, --log FILE File to redirect output (default: log/vines.log)
-P, --pid FILE File to store PID (default: pid/vines.pid)

Common options:
-h, --help Show this message
-v, --version Show version

But vines-agent, vines-services doesn't works!
$ vines-agent

/usr/lib/ruby/1.9.1/rubygems/specification.rb:1615:in raise_if_conflicts': Unable to activate niceogiri-1.1.1, because nokogiri-1.4.7 conflicts with nokogiri (~> 1.5) (Gem::LoadError) from /usr/lib/ruby/1.9.1/rubygems/specification.rb:738:inactivate'
from /usr/lib/ruby/1.9.1/rubygems/specification.rb:764:in block in activate_dependencies' from /usr/lib/ruby/1.9.1/rubygems/specification.rb:758:ineach'
from /usr/lib/ruby/1.9.1/rubygems/specification.rb:758:in activate_dependencies' from /usr/lib/ruby/1.9.1/rubygems/specification.rb:742:inactivate'
from /usr/lib/ruby/1.9.1/rubygems/specification.rb:764:in block in activate_dependencies' from /usr/lib/ruby/1.9.1/rubygems/specification.rb:758:ineach'
from /usr/lib/ruby/1.9.1/rubygems/specification.rb:758:in activate_dependencies' from /usr/lib/ruby/1.9.1/rubygems/specification.rb:742:inactivate'
from /usr/lib/ruby/1.9.1/rubygems.rb:1211:in gem' from /usr/local/bin/vines-agent:18:in

'

$ vines-services
/usr/lib/ruby/1.9.1/rubygems/specification.rb:1615:in raise_if_conflicts': Unable to activate niceogiri-1.1.1, because nokogiri-1.4.7 conflicts with nokogiri (~> 1.5) (Gem::LoadError) from /usr/lib/ruby/1.9.1/rubygems/specification.rb:738:inactivate'
from /usr/lib/ruby/1.9.1/rubygems/specification.rb:764:in block in activate_dependencies' from /usr/lib/ruby/1.9.1/rubygems/specification.rb:758:ineach'
from /usr/lib/ruby/1.9.1/rubygems/specification.rb:758:in activate_dependencies' from /usr/lib/ruby/1.9.1/rubygems/specification.rb:742:inactivate'
from /usr/lib/ruby/1.9.1/rubygems/specification.rb:764:in block in activate_dependencies' from /usr/lib/ruby/1.9.1/rubygems/specification.rb:758:ineach'
from /usr/lib/ruby/1.9.1/rubygems/specification.rb:758:in activate_dependencies' from /usr/lib/ruby/1.9.1/rubygems/specification.rb:742:inactivate'
from /usr/lib/ruby/1.9.1/rubygems.rb:1211:in gem' from /usr/local/bin/vines-services:18:in

'

$ gem list

*** LOCAL GEMS ***

activemodel (3.2.9)
activerecord (3.2.9)
activesupport (3.2.9)
addressable (2.3.2)
arel (3.0.2)
bcrypt-ruby (3.0.1)
blather (0.5.12)
bson (1.5.2)
bson_ext (1.5.2)
builder (3.0.4)
citrus (2.4.1)
cookiejar (0.3.0)
couchrest (1.1.3)
couchrest_model (1.1.2)
em-hiredis (0.1.1)
em-http-request (1.0.3)
em-socksify (0.2.1)
eventmachine (1.0.0)
fattr (2.2.1)
hiredis (0.4.5)
http_parser.rb (0.5.3)
i18n (0.6.1)
ipaddress (0.8.0)
mime-types (1.19)
mixlib-cli (1.2.2)
mixlib-config (1.1.2)
mixlib-log (1.4.1)
mongo (1.5.2)
multi_json (1.4.0)
net-ldap (0.3.1)
niceogiri (1.1.1)
nokogiri (1.5.5, 1.4.7)
ohai (0.6.12)
rest-client (1.6.7)
session (3.1.0)
slave (1.3.0)
sqlite3 (1.3.6)
systemu (2.5.2)
tzinfo (0.3.35)
vines (0.4.5)
vines-agent (0.1.3)
vines-services (0.1.3)
yajl-ruby (1.1.0)

$ sudo gem uninstall nokogiri -v=1.4.7

You have requested to uninstall the gem:
nokogiri-1.4.7
blather-0.5.12 depends on [nokogiri (> 1.4.0)]
vines-0.4.5 depends on [nokogiri (
> 1.4.7)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn] Y
Successfully uninstalled nokogiri-1.4.7

$ vines-services

/usr/lib/ruby/1.9.1/rubygems/dependency.rb:247:in to_specs': Could not find nokogiri (~> 1.4.0) amongst [activemodel-3.2.9, activerecord-3.2.9, activesupport-3.2.9, addressable-2.3.2, arel-3.0.2, bcrypt-ruby-3.0.1, blather-0.5.12, bson-1.5.2, bson_ext-1.5.2, builder-3.0.4, citrus-2.4.1, cookiejar-0.3.0, couchrest-1.1.3, couchrest_model-1.1.2, em-hiredis-0.1.1, em-http-request-1.0.3, em-socksify-0.2.1, eventmachine-1.0.0, fattr-2.2.1, hiredis-0.4.5, http_parser.rb-0.5.3, i18n-0.6.1, ipaddress-0.8.0, mime-types-1.19, mixlib-cli-1.2.2, mixlib-config-1.1.2, mixlib-log-1.4.1, mongo-1.5.2, multi_json-1.4.0, net-ldap-0.3.1, niceogiri-1.1.1, nokogiri-1.5.5, ohai-0.6.12, rest-client-1.6.7, session-3.1.0, slave-1.3.0, sqlite3-1.3.6, systemu-2.5.2, tzinfo-0.3.35, vines-0.4.5, vines-agent-0.1.3, vines-services-0.1.3, yajl-ruby-1.1.0] (Gem::LoadError) from /usr/lib/ruby/1.9.1/rubygems/specification.rb:761:inblock in activate_dependencies'
from /usr/lib/ruby/1.9.1/rubygems/specification.rb:758:in each' from /usr/lib/ruby/1.9.1/rubygems/specification.rb:758:inactivate_dependencies'
from /usr/lib/ruby/1.9.1/rubygems/specification.rb:742:in activate' from /usr/lib/ruby/1.9.1/rubygems/specification.rb:764:inblock in activate_dependencies'
from /usr/lib/ruby/1.9.1/rubygems/specification.rb:758:in each' from /usr/lib/ruby/1.9.1/rubygems/specification.rb:758:inactivate_dependencies'
from /usr/lib/ruby/1.9.1/rubygems/specification.rb:742:in activate' from /usr/lib/ruby/1.9.1/rubygems.rb:1211:ingem'
from /usr/local/bin/vines-services:18:in `

'

$ ruby -v
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
$ gem -v
1.8.11

What is wrong?
Plz advice me.

Thanks in advance.
BR Rafael

@wmarbut
Copy link

wmarbut commented Dec 24, 2012

Also seeing this issue on a Ubuntu 12.04 LTS box

@wmarbut
Copy link

wmarbut commented Dec 24, 2012

I found a resolution. You need to remove the version of niceogiri that requires nokogiri 1.5 and install the version that requires 1.4.7.

root@system:/var/lib/gems/1.9.1/gems/niceogiri-1.1.1# gem install niceogiri -v 1.0.2
Fetching: niceogiri-1.0.2.gem (100%)
Successfully installed niceogiri-1.0.2
1 gem installed
Installing ri documentation for niceogiri-1.0.2...
Installing RDoc documentation for niceogiri-1.0.2...
root@system:/var/lib/gems/1.9.1/gems/niceogiri-1.1.1# gem uninstall niceogiri -v 1.1.1
Successfully uninstalled niceogiri-1.1.1
root@system:/var/lib/gems/1.9.1/gems/niceogiri-1.1.1#

vines-services now works

@benlangfeld
Copy link

Why does vines still require Nokogiri 1.4?

@cforcey
Copy link

cforcey commented Apr 5, 2013

Just ran into this too on a Mac OS X fresh install of vines 0.4.5 as per the docs. Installation failed:

$ gem install vines vines-agent vines-services # Fails: 'Unable to resolve dependencies: niceogiri requires nokogiri (~> 1.5)'
$ gem install niceogiri -v 1.0.2 #thanks grep-awesome
$ gem install vines vines-agent vines-services # Succeeds with no errors

Thanks grep-awesome for the tip. As benlangfeld commented, it would be great to up the nokogiri requirement if tests all still pass, etc. Thanks so much for this amazing project.

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

4 participants