chef / chef-workstation

Chef Workstation gives you everything you need to get started with Chef, so you can automate how you audit, configure, and manage applications end environments.
Apache License 2.0
134 stars 112 forks source link

After install chef-workstation - curl not working #1830

Closed kmf closed 3 years ago

kmf commented 3 years ago

After my installation of chef-workstation (via brew) my curl in my $PATH got overridden from

/usr/bin/curl

to this

2021-03-16_5-14-14

using macOS 11.2.3

chef-workstation-21.2.303-1.x86_64.dmg
johnmccrae commented 3 years ago

I came here to post this too. I get the following output :

`¥ Johns-MBP.hsd1.or.comcast.net {/Users/johnmccrae} curl dyld: Library not loaded: /usr/local/opt/zstd/lib/libzstd.1.dylib Referenced from: /opt/chef-workstation/embedded/bin/curl Reason: no suitable image found. Did find: /usr/local/opt/zstd/lib/libzstd.1.dylib: code signature in (/usr/local/opt/zstd/lib/libzstd.1.dylib) not valid for use in process using Library Validation: mapping process and mapped file (non-platform) have different Team IDs /usr/local/opt/zstd/lib/libzstd.1.dylib: stat() failed with errno=1

¥ Johns-MBP.hsd1.or.comcast.net {/Users/johnmccrae} chef --version Chef Workstation version: 21.2.303 Chef Infra Client version: 16.10.17 Chef InSpec version: 4.26.13 Chef CLI version: 3.1.1 Chef Habitat version: 1.6.181 Test Kitchen version: 2.10.0 Cookstyle version: 7.8.3`

tas50 commented 3 years ago

This is fixed by disabling libzstd in our curl compilation. Thanks for the heads up @kmf

LevonBecker commented 3 years ago

What worked for me was to downgrade to 21.2.278 or Install the development version 21.3.332 (Sticking with this).

jeffbyrnes commented 1 month ago

[EDIT] Looks like the fix is to not install chef-workstation via Brew, but instead using Progress Chef’s DMGs

Previous comment

I see a similar error, except it’s with commands provided by Chef Workstation itself, on Chef Workstation v24.8.1068 ```bash ♠ chef -v Chef Workstation version: 24.8.1068 Chef InSpec version: 5.22.55 Chef CLI version: 5.6.14 Chef Habitat version: 1.6.1041 Test Kitchen version: 3.6.0 Cookstyle version: 7.32.8 Chef Infra Client version: 18.5.0 ♠ chef exec berks install :85:in `require': dlopen(/Users/jeffbyrnes/.chef/gem/ruby/3.1.0/gems/stringio-3.1.0/lib/stringio.bundle, 0x0009): tried: '/Users/jeffbyrnes/.chef/gem/ruby/3.1.0/gems/stringio-3.1.0/lib/stringio.bundle' (code signature in '/Users/jeffbyrnes/.chef/gem/ruby/3.1.0/gems/stringio-3.1.0/lib/stringio.bundle' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs), '/System/Volumes/Preboot/Cryptexes/OS/Users/jeffbyrnes/.chef/gem/ruby/3.1.0/gems/stringio-3.1.0/lib/stringio.bundle' (no such file), '/Users/jeffbyrnes/.chef/gem/ruby/3.1.0/gems/stringio-3.1.0/lib/stringio.bundle' (code signature in '/Users/jeffbyrnes/.chef/gem/ruby/3.1.0/gems/stringio-3.1.0/lib/stringio.bundle' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs) - /Users/jeffbyrnes/.chef/gem/ruby/3.1.0/gems/stringio-3.1.0/lib/stringio.bundle (LoadError) from :85:in `require' from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/chef-utils-18.5.0/lib/chef-utils/dsl/train_helpers.rb:18:in `' from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/chef-utils-18.5.0/lib/chef-utils/dsl/introspection.rb:19:in `require_relative' from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/chef-utils-18.5.0/lib/chef-utils/dsl/introspection.rb:19:in `' from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/chef-utils-18.5.0/lib/chef-utils.rb:22:in `require_relative' from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/chef-utils-18.5.0/lib/chef-utils.rb:22:in `' from :85:in `require' from :85:in `require' from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/chef-config-18.5.0/lib/chef-config/path_helper.rb:19:in `' from :85:in `require' from :85:in `require' from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/chef-18.5.0/lib/chef/util/path_helper.rb:19:in `' from :85:in `require' from :85:in `require' from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/chef-cli-5.6.14/lib/chef-cli/cli.rb:25:in `' from :85:in `require' from :85:in `require' from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/chef-cli-5.6.14/bin/chef-cli:23:in `' from /usr/local/bin/chef-cli:440:in `load' from /usr/local/bin/chef-cli:440:in `

' ```