Vagrant无法安装依赖于nokogiri的插件 [英] Vagrant cannot install nokogiri-dependent plugins

查看:98
本文介绍了Vagrant无法安装依赖于nokogiri的插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为流浪汉(1.5.1)安装机架插件:

I'm trying to install the rackspace plugin for vagrant (1.5.1):

vagrant plugin install vagrant-rackspace

但它抱怨

Bundler,Vagrant用于安装插件的基础系统, 报告了一个错误.错误如下所示.这些错误通常是 由错误配置的插件安装或瞬态网络引起的 问题.来自Bundler的错误是:

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:

在安装nokogiri(1.6.1)和Bundler时发生错误 无法继续.确保gem install nokogiri -v '1.6.1' 捆绑前成功.

An error occurred while installing nokogiri (1.6.1), and Bundler cannot continue. Make sure that gem install nokogiri -v '1.6.1' succeeds before bundling.

但是gem install nokogiri -v '1.6.1'/Applications/Vagrant/embedded/bin/gem install nokogiri -v '1.6.1'都可以工作.

我看了一堆SO线程和博客文章.我尝试过的没有成功的事情

I've looked at a bunch of SO threads and blog posts. Things I've tried that have not worked

  1. 运行xcode-select --install
  2. 安装完整的xcode
  3. 酿造gcc-4.2
  4. 删除Ruby的rvm和rvm版本
  5. 安装带有内置(mac)红宝石和无规嵌入红宝石的nokogiri
  1. Running xcode-select --install
  2. Installing full xcode
  3. brew install gcc-4.2
  4. Remove rvm and rvm version of ruby
  5. Install nokogiri w/ built-in (mac) ruby and vagrant-embedded ruby

尽管nokogiri可以很好地安装(上面的#5)并且在两个方面都没有sudo,但vagrant plugin install vagrant-rackspace仍然失败...

Despite the fact that nokogiri installs fine (#5 above) without sudo on both counts, vagrant plugin install vagrant-rackspace still fails...

因此,总而言之,我可以安装nokogiri插件,但是我不能安装无业游民的机架式插件,您能帮我安装该插件吗?

So, in summary, I can install the nokogiri plugin, however I cannot install the vagrant rackspace plugin, can you help me get the plugin installed?

相关线程

  • Error to install Nokogiri on OSX 10.9 Maverick?
  • nokogiri - ERROR: Failed to build gem native extension

完整输出 无用的插件安装了vagrant-rackspace --debug

推荐答案

我在OSX Mavericks上,这对我有用:

I'm on OSX Mavericks and this worked for me:

设置为环境属性:

NOKOGIRI_USE_SYSTEM_LIBRARIES=1 

然后照常安装:

vagrant plugin install vagrant-rackspace

这篇关于Vagrant无法安装依赖于nokogiri的插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆