【问题标题】:Chef Command Failing because of old libxml2由于旧的 libxml2,厨师命令失败
【发布时间】:2019-08-06 23:35:50
【问题描述】:

我正在尝试设置 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 来解决此问题。没有改变错误。

【问题讨论】:

    标签: ruby chef-infra nokogiri libxml2 knife


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-10-25
      • 1970-01-01
      • 1970-01-01
      • 2014-09-29
      • 2014-01-03
      • 1970-01-01
      • 1970-01-01
      • 2014-09-04
      相关资源
      最近更新 更多