- xml - AJAX/Jquery XML 解析
- 具有多重继承的 XML 模式
- .net - 枚举序列化 Json 与 XML
- XML 简单类型、简单内容、复杂类型、复杂内容
Tôi đang cố gắng sử dụng 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 `'
câu trả lời hay nhất
我正好遇到了这个问题。 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/
我确实安装了下面提到的 ruby 东西 当我尝试执行 chef-client 时,我收到下面提到的错误 c:\RubyDevKit>chef-client C:/Ruby193/lib/ruby/
完整堆栈跟踪: /Users/galharth/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencie
我尝试使用 Ruby(在 Windows 下)连接到数据库。为此: 在 C:\Ruby193 安装 Ruby 安装 devkit (c:\ruby193\devkit)。运行“ruby dk.rb i
当我尝试在命令行中包含一个库时,我收到 LoadError 消息 $ ruby -v ruby 1.8.7 (2012-06-29 patchlevel 370) $ gem list | grep
这里的 Ruby 新手试图弄清楚如何使用 Gem,到目前为止,体验并不是很好。 在通过 gem 安装 mysql2 之后,我尝试在一个简单的文件中使用它。 require 'mysql2'#clien
我已经按照 https://github.com/cucumber/cucumber-rails#installation 在新的 Rails 4 应用程序中安装了 Cucumber-rails ge
在我的应用程序中;当我提交表单时,出现此错误: LoadError at /questions Unable to autoload constant Message, expected /app/m
似乎自动加载器正在加载 lib/tools/address 而不是我的模型 地址抛出以下错误 LoadError: Unable to autoload constant Address, expec
我想使用 smarter_csv gem,但是当我在代码中写入 require "smarter_csv" 时,它会给我以下错误消息: /System/Library/Frameworks/Ruby.
我刚开始使用 ruby,但在使用 bundle 时遇到困难。 bundle install 我的错误: /usr/local/lib/ruby/site_ruby/2.1.0/rubygems/c
在这个应用程序上一切正常,现在我在尝试推送到 Heroku 时得到了这个: Counting objects: 28, done. Delta compression using up to 4 th
我是 ruby 新手。我只是安装成功模块 libxml-ruby。当我运行一个需要“xml”的脚本时,它出现错误: C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core
我运行 pod install,但出现错误 LoadError - cannot load such file -- xcodeproj/prebuilt/x86_64-darwin12.5.0-2.
我正在尝试向我的 Xcode 项目添加一个 pod。我收到此错误: LoadError - no such file to load -- xcodeproj/prebuilt/universal-d
这个问题困扰了我几天...每当我使用 .bring_to_front 方法时 require "rubygems" require "watir" browser = Watir::Browser::
例如,当我需要一个文件(称为 st.rb)时: require 'rubygems' require 'mongrel' class TestHandler > require 'st.rb' Loa
我已经在 Ubuntu 上安装了 Julia 1.5.3,但 IJulia falis 带有 LoadError,如屏幕截图所示。 第一个conda环境的路径很不对,这个是在Ubuntu上跑的。 Pr
我在运行以下 Julia 代码片段时遇到错误 using GR, Interact t = 0:0.01:1 @manipulate for phi=0:0.1:6.28 plot(cos.(2
我无法运行 ruby Web 应用程序,并且收到以下消息错误: rackup webapp/config.ru --debug nil Exception `LoadError' at /usr/
我正在尝试按照本教程使用设计创建 token 身份验证: http://www.strukturedkaos.com/2011/09/19/soup-to-nuts-token-authenticat
Tôi là một lập trình viên xuất sắc, rất giỏi!