You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following this and this docs ended up with a broken chef setup on MacOS
not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed. -
failed to load the ffi-yajl c-extension, falling back to ffi interface
FATAL: to use the ffi extension instead of the compiled C extension, the ffi gem must be installed
(it is optional, so you must include it in your bundle manually)
% irb
irb(main):001:0> require "ffi"
<internal:/opt/chef-workstation/embedded/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': dlopen(/Users/username/.chefdk/gem/ruby/3.0.0/gems/ffi-1.15.5/lib/ffi_c.bundle, 9): no suitable image found. Did find: (LoadError)
/Users/username/.chefdk/gem/ruby/3.0.0/gems/ffi-1.15.5/lib/ffi_c.bundle: code signature in (/Users/username/.chefdk/gem/ruby/3.0.0/gems/ffi-1.15.5/lib/ffi_c.bundle) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed. - /Users/username/.chefdk/gem/ruby/3.0.0/gems/ffi-1.15.5/lib/ffi_c.bundle
Chef Workstation Version
Chef Workstation version: 22.4.861
Chef InSpec version: 4.56.19
Chef CLI version: 5.6.1
Chef Habitat version: 1.6.420
Test Kitchen version: 3.2.2
Cookstyle version: 7.32.1
Chef Infra Client version: 17.10.0
Platform Version
MacOS 11.6.5
The text was updated successfully, but these errors were encountered:
Chef Workstation version: 24.8.1068
Test Kitchen version: 3.6.0
Cookstyle version: 7.32.8
Chef Infra Client version: 18.5.0
Chef InSpec version: 5.22.55
Chef CLI version: 5.6.14
Chef Habitat version: 1.6.1041
MacOS 15.2, intel
EDIT: I found a less ideal way around this issue, deleting ~/.chef/gem directory, then not installing any additional gems.
Description
Following this and this docs ended up with a broken chef setup on MacOS
not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed. -
Chef Workstation Version
Chef Workstation version: 22.4.861
Chef InSpec version: 4.56.19
Chef CLI version: 5.6.1
Chef Habitat version: 1.6.420
Test Kitchen version: 3.2.2
Cookstyle version: 7.32.1
Chef Infra Client version: 17.10.0
Platform Version
MacOS 11.6.5
The text was updated successfully, but these errors were encountered: