我正在尝试设置Chef工作站,但在运行时出现以下错误
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我是厨师新手,但尝试通过brew安装libxml2和nokogiri来解决这个问题。未更改错误。
发布于 2019-03-18 18:58:11
您没有指定如何安装knife...我可以假设您是通过安装chef rubygems安装的。如果是这样,请使用bundle exec knife确保您运行的是在Gemfile中指定的rubygem
https://stackoverflow.com/questions/55190224
复制相似问题