`block in activate_dependencies':不能满足'windows-pr(= 1.2.1)',已经激活'windows-pr-1.2.2'(Gem :: LoadError)

Dan*_*nds 2 ruby gem vagrant

我正在尝试使用http://rove.io/在我的Windows 8机器上设置一个流浪盒.我按照网站上的说明(特别是安装gem install librarian-chef和运行librarian-chef install,但我收到以下错误:

C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:774:in `block in activate_dependencies': can't satisfy 'windows-pr (= 1.2.1)', already activated 'windows-pr-1.2.2' (Gem::LoadError)
    from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:766:in `each'
    from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:766:in `activate_dependencies'
    from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:750:in `activate'
    from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:780:in `block in activate_dependencies'
    from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:766:in `each'
    from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:766:in `activate_dependencies'
    from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:750:in `activate'
    from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems.rb:1232:in `gem'
    from C:/Ruby193/bin/librarian-chef:22:in `<main>'
Run Code Online (Sandbox Code Playgroud)

Dav*_*ook 5

我有这个问题.Windows 8.1专业版,Ruby193.

首先我看了卸载windows-pr 1.2.1,但是厨师依赖它

chef-11.6.2 depends on [windows-pr (= 1.2.1)]
Run Code Online (Sandbox Code Playgroud)

我决定卸载较新版本的windows-pr 1.2.2版.

>gem uninstall windows-pr -v1.2.2

You have requested to uninstall the gem:
        windows-pr-1.2.2
mixlib-shellout-1.2.0 depends on [windows-pr (~> 1.2.2)]
win32-dir-0.3.7 depends on [windows-pr (>= 1.0.9)]
win32-process-0.6.5 depends on [windows-pr (>= 1.1.2)]
win32-service-0.7.2 depends on [windows-pr (>= 1.0.8)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn]  Y
Successfully uninstalled windows-pr-1.2.2
Run Code Online (Sandbox Code Playgroud)

看起来我唯一能引起问题的依赖是mixlib-shellout 1.2.0.我决定退回一个版本,看看是否会解决它.

>gem uninstall mixlib-shellout

You have requested to uninstall the gem:
        mixlib-shellout-1.2.0-x86-mingw32
chef-11.6.2 depends on [mixlib-shellout (~> 1.1)]
ohai-6.18.0 depends on [mixlib-shellout (>= 0)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn]  Y
Successfully uninstalled mixlib-shellout-1.2.0-x86-mingw32

>gem install mixlib-shellout -v1.1.0

Fetching: mixlib-shellout-1.1.0-x86-mingw32.gem (100%)
Fetching: windows-pr-1.2.2.gem (100%)
Successfully installed mixlib-shellout-1.1.0-x86-mingw32
Successfully installed windows-pr-1.2.2
2 gems installed
Installing ri documentation for mixlib-shellout-1.1.0-x86-mingw32...
Installing ri documentation for windows-pr-1.2.2...
Installing RDoc documentation for mixlib-shellout-1.1.0-x86-mingw32...
Installing RDoc documentation for windows-pr-1.2.2...
Run Code Online (Sandbox Code Playgroud)

这似乎解决了它

>librarian-chef init

      create  Cheffile
Run Code Online (Sandbox Code Playgroud)