gpt4 book ai didi

ruby - 无法安装任何 vagrant 插件

转载 作者:数据小太阳 更新时间:2023-10-29 09:03:44 25 4
gpt4 key购买 nike

我正在尝试安装 Vagrant 插件,但出现此错误:

➜  ~  vagrant plugin install vagrant-bindfs
Installing the 'vagrant-bindfs' plugin. This can take a few minutes...
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.6.2), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.6.6.2'` succeeds before bundling.
➜ ~

然后,我尝试安装 Nokogiri:

➜  ~ gem install nokogiri -v '1.6.6.2'%
Building native extensions. This could take a while...
Successfully installed nokogiri-1.6.6.2
Parsing documentation for nokogiri-1.6.6.2
Done installing documentation for nokogiri after 2 seconds
1 gem installed
➜ ~

然后我尝试再次安装 vagrant 插件,它说同样的事情:

Make sure that `gem install nokogiri -v '1.6.6.2'` succeeds before bundling.

尝试安装任何 vagrant 插件时都会发生同样的情况。

我在 OSX Yosemite 上使用 Vagrant 1.6.3。

我做错了什么吗?

最佳答案

看看有同样问题的其他人,看来您需要为 Nokogiri 设置一个环境变量:

Vagrant cannot install nokogiri-dependent plugins

NOKOGIRI_USE_SYSTEM_LIBRARIES=1 

此外,您使用 Vagrant 1.6.3 的任何原因显然这个问题已在1.7.2 及以上版本:

https://github.com/mitchellh/vagrant/issues/3769

关于ruby - 无法安装任何 vagrant 插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29079601/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com