我正在尝试设置一个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来解决这个问题。没有改变错误。
你没有说明你是如何安装knife
的...我可以假设您通过安装chef
rubygems来安装它。如果是这样,使用bundle exec knife
确保你运行你在Gemfile
中指定的rubygems