Chef命令由于旧的libxml2而失败

问题描述 投票:0回答:1

我正在尝试设置一个Chef Workstation,并在运行时收到以下错误

knife ssl check

错误:

Library not loaded: /opt/chef-workstation/embedded/lib/libxml2.2.dylib 
(LoadError)
  Referenced from: /opt/chef-workstation/embedded/lib/ruby/gems/2.5.0/gems/nokogiri-1.10.1/lib/nokogiri/nokogiri.bundle
  Reason: Incompatible library version: nokogiri.bundle requiresversion 12.0.0 or later, but libxml2.2.dylib provides version 10.0.0 - /opt/chef-workstation/embedded/lib/ruby/gems/2.5.0/gems/nokogiri-1.10.1/lib/nokogiri/nokogiri.bundle

我是Chef的新手,但尝试通过brew安装libxml2和nokogiri来解决这个问题。没有改变错误。

macos chef nokogiri libxml2 knife
1个回答
0
投票

你没有说明你是如何安装knife的...我可以假设您通过安装chef rubygems来安装它。如果是这样,使用bundle exec knife确保你运行你在Gemfile中指定的rubygems

© www.soinside.com 2019 - 2024. All rights reserved.