【问题标题】:Installing vagrant-librarian-chef Has net-ssh Version Conflicts安装 vagrant-librarian-chef 有 net-ssh 版本冲突
【发布时间】:2016-02-04 21:22:44
【问题描述】:

尝试为 Vagrant 1.8.1 安装 vagrant-librarian-chef 插件时出现以下错误

$ vagrant plugin install vagrant-librarian-chef
Ignoring bigdecimal-1.2.7 because its extensions are not built.  Try: gem pristine bigdecimal --version 1.2.7
Ignoring bigdecimal-1.2.7 because its extensions are not built.  Try: gem pristine bigdecimal --version 1.2.7
Installing the 'vagrant-librarian-chef' plugin. This can take a few minutes... 
The plugin(s) can't be installed due to the version conflicts below.
This means that the plugins depend on a library version that conflicts
with other plugins or Vagrant itself, creating an impossible situation
where Vagrant wouldn't be able to load the plugins.

You can fix the issue by either removing a conflicting plugin or
by contacting a plugin author to see if they can address the conflict.

Vagrant could not find compatible versions for gem "net-ssh":
  In Gemfile:
    vagrant (= 1.8.1) x86-mingw32 depends on
      net-ssh (~> 3.0.1) x86-mingw32

    vagrant (= 1.8.1) x86-mingw32 depends on
      net-scp (~> 1.1.0) x86-mingw32 depends on
        net-ssh (>= 2.6.5) x86-mingw32

    vagrant (= 1.8.1) x86-mingw32 depends on
      net-scp (~> 1.1.0) x86-mingw32 depends on
        net-ssh (>= 2.6.5) x86-mingw32

    vagrant-librarian-chef (>= 0) x86-mingw32 depends on
      librarian-chef (>= 0) x86-mingw32 depends on
        chef (>= 0.10) x86-mingw32 depends on
          net-ssh (~> 2.1.3) x86-mingw32

当我执行gem list net-ssh 时,我得到以下回复:

*** LOCAL GEMS ***

net-ssh (3.0.2, 2.9.4)
net-ssh-gateway (1.2.0)
net-ssh-multi (1.2.1)

有什么问题可以帮忙吗?我是 ruby​​ 和 vagrant 的新手,这可能对这种情况没有帮助!

【问题讨论】:

    标签: ruby vagrant net-ssh


    【解决方案1】:

    问题是 net-ssh 版本冲突。 Vagrant 1.8.1 使用 v3.0.1,但 vagrant-librarian-chef 接受高达 2.9 的版本。

    将 vagrant 版本降级到 1.7.4 为我解决了这个问题。

    【讨论】:

      猜你喜欢
      • 2013-01-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-02-12
      • 2016-01-09
      • 2015-10-17
      • 1970-01-01
      • 2019-10-06
      相关资源
      最近更新 更多