gpt4 book ai didi

ruby - `block in activate_dependencies' : 可以 't satisfy ' windows-pr (= 1.2.1) ', already activated ' windows-pr-1.2.2' (Gem::LoadError)

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

我正在尝试使用 http://rove.io/在我的 Windows 8 机器上设置一个 vagrant box。我已按照网站上的说明进行操作(特别是安装 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>'

最佳答案

我正好遇到了这个问题。 Windows 8.1 专业版,Ruby193。

首先我查看了卸载 windows-pr 1.2.1,但是 chef 对它有依赖

chef-11.6.2 depends on [windows-pr (= 1.2.1)]

我决定卸载更新版本的 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

看起来我唯一会导致问题的依赖项是 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...

这似乎解决了问题

>librarian-chef init

create Cheffile

关于ruby - `block in activate_dependencies' : 可以 't satisfy ' windows-pr (= 1.2.1) ', already activated ' windows-pr-1.2.2' (Gem::LoadError),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19344049/

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