You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to install your host manager with following command:
----> vagrant plugin install vagrant-hostmanager
(Have also tried this with sudo)
Error output consistently remarks:
"Bundler, the underlying system Vagrant uses to install plugins,
reported an error. The error is shown below. These errors are usually
caused by misconfigured plugin installations or transient network
issues. The error from Bundler is:
An error occurred while installing nokogiri (1.6.3.1), and Bundler cannot continue.
Make sure that gem install nokogiri -v '1.6.3.1' succeeds before bundling."
At this point, Nokogiri is absolutely installed in my comp.
Have tried workarounds found on Google:
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install nokogiri -v '1.6.3.1' -- --with-iconv-include=/usr/local/opt/libiconv/include --with-iconv-lib=/usr/local/opt/libiconv/include
Hi @ajkim, this seems to be a known issue with vagrant itself and how it deals with dependencies when installing plugins (ie: vagrant-hostmanager doesn't even depend on nokogiri, but vagrant still tries to install it).
Anyway, there is a long thread in hashicorp/vagrant#3769 about this. Take a look at this comment, which may be a usable work-around. I haven't run into the issue myself, and haven't found a way to reproduce it.
Also, the instruction to run gem install nokogiri... is a bit misleading, because vagrant has its own copy of Ruby, with its own gems folder and so on. When you run gem install nokogiri, it installs nokogiri in your "system" copy of Ruby and not in vagrant's Ruby - so vagrant still won't see that version of nokogiri.
I hope this helps. I am closing this for now. If you are having trouble and would like to discuss more, feel free to reopen it.
Trying to install your host manager with following command:
----> vagrant plugin install vagrant-hostmanager
(Have also tried this with sudo)
Error output consistently remarks:
"Bundler, the underlying system Vagrant uses to install plugins,
reported an error. The error is shown below. These errors are usually
caused by misconfigured plugin installations or transient network
issues. The error from Bundler is:
An error occurred while installing nokogiri (1.6.3.1), and Bundler cannot continue.
Make sure that
gem install nokogiri -v '1.6.3.1'
succeeds before bundling."At this point, Nokogiri is absolutely installed in my comp.
Have tried workarounds found on Google:
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install nokogiri -v '1.6.3.1' -- --with-iconv-include=/usr/local/opt/libiconv/include --with-iconv-lib=/usr/local/opt/libiconv/include
and
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future vagrant plugin install vagrant-hostmanager
None of these methods have worked at all and now at a roadblock.
Any ideas on how to fix this issue?
The text was updated successfully, but these errors were encountered: