GithubHelp home page GithubHelp logo

Comments (5)

patatepartie avatar patatepartie commented on July 19, 2024

Same problem on MacOS X:

ERROR root:  -- Error: #<Gem::LoadError: Unable to activate vagrant-vsphere-0.5.1, because nokogiri-1.6.0 conflicts with nokogiri (= 1.5.10)>

from vagrant-vsphere.

catharsis avatar catharsis commented on July 19, 2024

From the README: The plugin forces use of Nokogiri 1.5.10 to prevent conflicts with older versions of system libraries, specifically zlib.

@agrauch What type of conflict is that? Would it be possible to solve any other way?

from vagrant-vsphere.

agrauch avatar agrauch commented on July 19, 2024

We were seeing errors when installing the plugin on an enterprise SUSE server. We believe the problem involved compiling nokogiri against the libxml2/zlib libraries included with Vagrant and linking or running with libxml2/zlib installed on the system. This same issue was reported by another user here: https://groups.google.com/forum/#!msg/vagrant-up/KprN9tQtT34/asJDFdfoDoYJ. Another vagrant plugin ran into a similar issue and solved it by locking the nokogiri version: vagrant-libvirt/vagrant-libvirt#63.

Locking the nokogiri version solved the issue on SUSE machine and on our MacOS X development machines. Admittedly, I don't have other vagrant plugins installed that require nokogiri. Although I do have nokogiri 1.6.0 and 1.15.10 installed.

I'm not sure how to solve this one. Conditionally setting the version of nokogiri based on the system would be cool but I have no idea how to do this.

from vagrant-vsphere.

sneal avatar sneal commented on July 19, 2024

I ran into this same problem. Unsurprisingly I had vagrant-windows installed first and then installed vagrant-vsphere. Vagrant would fail to load the vagrant-vsphere plugin because of the newer Nokogiri version. However I do have a hacky workaround

  1. Uninstall all of your vagrant plugins
  2. vagrant plugin install vagrant-vsphere
  3. vagrant plugin install vagrant-windows (or whatever other plugins that use Nokogiri)

If you install vagrant-vsphere first it will install nokogiri 1.5.10. Other gems will see this version and not bother upgrading it. This worked both on my Mac and Ubuntu 12.04. Everyone wins.

That being said I'd rather change vagrant-vsphere gemspec to not require the older version of Nokogiri.

from vagrant-vsphere.

samueltbrown avatar samueltbrown commented on July 19, 2024

+1 for @sneal workaround. I uninstalled/reinstalled my plugins starting with vagrant-vsphere and was able to get it working. Thanks!

from vagrant-vsphere.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.