-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Unable to install plugins that depend on nokogiri in Vagrant 1.6+ #3769
Comments
Could you share the logs? The underlying installer foundation didn't change at all between 1.5 and 1.6, which makes this odd. |
Which logs shall I include? The landrush bug has a trace of the output. It's certainly strange, in that I'm sure it's been working fine for several days, but suddenly today our CI system and my own installation started to have the same issue. Entirely possible it's a bug elsewhere. |
I have same error with "vagrant plugin update" command. Error log: Bundler, the underlying system Vagrant uses to install plugins, An error occurred while installing nokogiri (1.6.2), and Bundler cannot continue. |
Same issue here:
|
I run into this as well with vagrant 1.6.0, 1.6.1 and 1.6.2.
|
The same problem:
|
FYI: this might be caused by the recent upgrade of the nokogiri gem to 1.6.2 |
Quick fix: add |
Installing nokogiri gem with system installed libxml2 is temporal solution for this issue.
|
I've seen this happen when installing a pre-release version of vagrant-lxc and a user has just reported it as well. Funny fact is that vagrant-lxc has no gem dependencies at all oO |
Yep, I'm seeing this issue as well when attempting to install vmware_fusion /cc @josegonzalez |
Confirmed that a downgrade works, though the |
And now attempting to install |
Ah, I wonder if this is caused by 1.6 adding the vagrant-windows dependencies which have a Nokogiri aspect. |
/cc @sneal |
I'm hitting this issue as well with vagrant-cachier, vagrant-omnibus, AND vagrant-hostsupdater |
Downgrading to 1.5.4 doesn't work for me. After the downgrade when running
Is there another version you guys downgraded to? Also how do you delete the current installation, by just deleting the |
After downgrading to 1.5.4 all my plugin reinstalls were working, except berkshelf. It was giving me that nokogiri error. It ended up working fine when I explicitly declared the plugin version in the install command: This: $ vagrant plugin install vagrant-berkshelf --plugin-version '>=2.0.1' Not this: $ vagrant plugin install vagrant-berkshelf Maybe that will help you with vagrant-aws… or maybe not. |
I believe this is actually caused by a recent Nokogiri update. Our build servers have recently failed to even build the Vagrant installers anymore because of this issue. I'll attempt to find a workaround. |
Same problem here on a fresh Debian 7.5 install with Vagrant 1.6.2, trying to install vagrant-lxc |
It works now on my machine with the last Nokogiri update v1.6.2.1.
|
👍 |
Fixed for me too. I think this was a Nokogiri bug. |
Another 👍 |
Same here, upgrading to |
Updating to Vagrant 1.7.2 fixed it for me too.
|
i still have this issue with vagrant 1.6.3 OSX 10.10.3 gem 2.4.6 I have tried ALL the above solutions. At last I edited nokogiri 1.6.2.1 gemspec in /Vagrant folder and modified the version to s.version = "1.6.6.2" not sure this is going to mess up some things or not. |
Having this problem with Vagrant 1.6.3 on Mac OS X 10.9.5, updating to Vagrant 1.7.2 fixed it. |
upgrade to a newer version of vagrant OR
if you get another error like before run the same command on that package, for example
|
I've had a great run with Vagrant, but I'm transitioning my projects to Docker now. Docker gets easier and easier to use each day, and it doesn't have any of the Ruby-to-C++ interface problems that Vagrant has. If you are having problems with Vagrant, give Docker a try. |
@jokeyrhyme Is there a "VVV" equivalent in Docker? |
@af7 if you mean http://varyingvagrantvagrants.org/ , then I'm not sure. I did find this (but it seems incomplete): https://github.com/Varying-Vagrant-Vagrants/vvv-docker/tree/lkwdwrd |
i still prefer vagrant because vagrant boxes are easier to destroy than docker containers/images. i am tired of doing a
Boot2docker, pushing to a privately hosted docker repository is a pain in the butt. Another pain point, docker caching for building new docker images is a subtle trap. We've been bitten by this several times in development. |
Solution for me with Vagrant 1.6.3 on Mac was adding this to vagrant-1.6.3.gemspec like suggested above: s.add_dependency(%q, ["< 1.6.3"]) |
A number of folks running older versions of vagrant experienced issues getting nokogiri installed due to a bug that was fixed in vagrant version 1.7.2: hashicorp/vagrant#3769 We shouldn't support older versions of Vagrant due to these issues.
I just had this error on vagrant 1.6.3 for nokogiri 1.6.6.2 when installing vagrant-cachier. But installing that version of nokogiri into |
On Ubuntu 15.10, I just had to install
This is cleaner than installing an old version of nokogiri manually 😉 |
not everybody was having problem of building nokogiri because of the missing zlib1g-dev package ;) |
I had the exact same issue on ubuntu 15.10, with vagrant 1.7.4. Installing the zlib1g-dev package worked perfectly. Thanks for the fix @damienalexandre |
I also had the exact same issue on Ubuntu 15.10, with vagrant 1.7.4+dfsg-1_all (Ubuntu apt-get default version), but unlike @Donal-Flanagan, installing zlib1g-dev did not fix it for me. I then did a |
I had this issue today when trying to install the vagrant-triggers plugin with Ubuntu 14.04. When I tried to manually run After installing zlib ( |
Getting this while using vagrant-azure (https://github.com/Azure/vagrant-azure) on win10. Not sure what the resolution might be yet. |
I had the same problem on Ubuntu 16.04. Installing the latest version of Vagrant from their website fixed it for me. |
@Mathyn thanks for the suggestion:
On a fresh install of Ubuntu 16.04, running |
Quick fix! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Since installing Vagrant 1.6.0, I'm unable to install landrush, or other plugins that depend on nokogiri:
I initially thought this was a landrush issue, but have reproduced with other vagrant plugins:
vagrant-landrush/landrush#69
I tested 1.6.1 and 1.6.2, both of which fail the same way. Reverting to 1.5.4 fixes the problem.
The text was updated successfully, but these errors were encountered: