Comments (5)
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.
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.
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.
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
- Uninstall all of your vagrant plugins
- vagrant plugin install vagrant-vsphere
- 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.
+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)
- How to define multi-machine vagrantfile using different vm templates? HOT 2
- error-exit ["VagrantPlugins::VSphere::Errors::VSphereError", "execution expired"]
- undefined method `[]' for nil:NilClass after setting host name
- No setting for command timeout
- Is this project still maintained? HOT 1
- vagrant-vsphere install fails on vagrant 2.2.7
- Vagrant Configures with IPv6 instead of IPv4 HOT 1
- Specifying IPv4 address removes default gateway HOT 1
- Vagrantfile to manage existing VMs HOT 1
- Authentication to vCenter with 2FA TOTP
- Is there still active maintainers for this project ? HOT 1
- 400 Error when downloading vsphere-dummy box
- "can't modify frozen String" error on vagrant-vsphere 1.14.0 HOT 1
- vagant loop weird HOT 2
- Which vSphere Version?
- Cannot install in vagrant 2.3.4 from Debian HOT 2
- Prompt vsphere password programatically HOT 1
- Test issue for GH actions
- Test issue for GH actions - part two
- Test out GH actions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vagrant-vsphere.