Cannot load google/protobuf_c on MacOS 13.4 arm64

I haven’t touched my Jekyll site for a while. When I try to run the local server now I get the error pasted below. Jekyll 4.3.2.

I found this solution, but unfortunately it does not work for me.

Did anyone find a solution for this?

cec@Carls-MacBook-Pro-2 cec_dk % bundle exec jekyll s

bundler: failed to load command: jekyll (/Users/cec/.gem/ruby/2.7.4/bin/jekyll)

/Users/cec/.gem/ruby/2.7.4/gems/google-protobuf-3.23.2-x86_64-darwin/lib/google/protobuf.rb:51:in `require': cannot load such file -- google/protobuf_c (LoadError)

from /Users/cec/.gem/ruby/2.7.4/gems/google-protobuf-3.23.2-x86_64-darwin/lib/google/protobuf.rb:51:in `rescue in <top (required)>'

from /Users/cec/.gem/ruby/2.7.4/gems/google-protobuf-3.23.2-x86_64-darwin/lib/google/protobuf.rb:48:in `<top (required)>'

from /Users/cec/.gem/ruby/2.7.4/gems/sass-embedded-1.58.3-arm64-darwin/ext/sass/embedded_sass_pb.rb:4:in `require'

from /Users/cec/.gem/ruby/2.7.4/gems/sass-embedded-1.58.3-arm64-darwin/ext/sass/embedded_sass_pb.rb:4:in `<top (required)>'

from /Users/cec/.gem/ruby/2.7.4/gems/sass-embedded-1.58.3-arm64-darwin/lib/sass/embedded.rb:4:in `require_relative'

from /Users/cec/.gem/ruby/2.7.4/gems/sass-embedded-1.58.3-arm64-darwin/lib/sass/embedded.rb:4:in `<top (required)>'

from /Users/cec/.gem/ruby/2.7.4/gems/sass-embedded-1.58.3-arm64-darwin/lib/sass-embedded.rb:4:in `require_relative'

from /Users/cec/.gem/ruby/2.7.4/gems/sass-embedded-1.58.3-arm64-darwin/lib/sass-embedded.rb:4:in `<top (required)>'

from /Users/cec/.gem/ruby/2.7.4/gems/jekyll-sass-converter-3.0.0/lib/jekyll/converters/scss.rb:8:in `require'

from /Users/cec/.gem/ruby/2.7.4/gems/jekyll-sass-converter-3.0.0/lib/jekyll/converters/scss.rb:8:in `<top (required)>'

from /Users/cec/.gem/ruby/2.7.4/gems/jekyll-sass-converter-3.0.0/lib/jekyll-sass-converter.rb:4:in `require'

from /Users/cec/.gem/ruby/2.7.4/gems/jekyll-sass-converter-3.0.0/lib/jekyll-sass-converter.rb:4:in `<top (required)>'

from /Users/cec/.gem/ruby/2.7.4/gems/jekyll-4.3.2/lib/jekyll.rb:195:in `require'

from /Users/cec/.gem/ruby/2.7.4/gems/jekyll-4.3.2/lib/jekyll.rb:195:in `<top (required)>'

from /Users/cec/.gem/ruby/2.7.4/gems/jekyll-4.3.2/exe/jekyll:8:in `require'

from /Users/cec/.gem/ruby/2.7.4/gems/jekyll-4.3.2/exe/jekyll:8:in `<top (required)>'

from /Users/cec/.gem/ruby/2.7.4/bin/jekyll:23:in `load'

from /Users/cec/.gem/ruby/2.7.4/bin/jekyll:23:in `<top (required)>'

from /Users/cec/.gem/ruby/2.7.4/gems/bundler-2.2.31/lib/bundler/cli/exec.rb:58:in `load'

from /Users/cec/.gem/ruby/2.7.4/gems/bundler-2.2.31/lib/bundler/cli/exec.rb:58:in `kernel_load'

from /Users/cec/.gem/ruby/2.7.4/gems/bundler-2.2.31/lib/bundler/cli/exec.rb:23:in `run'

from /Users/cec/.gem/ruby/2.7.4/gems/bundler-2.2.31/lib/bundler/cli.rb:478:in `exec'

from /Users/cec/.gem/ruby/2.7.4/gems/bundler-2.2.31/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'

from /Users/cec/.gem/ruby/2.7.4/gems/bundler-2.2.31/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'

from /Users/cec/.gem/ruby/2.7.4/gems/bundler-2.2.31/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'

from /Users/cec/.gem/ruby/2.7.4/gems/bundler-2.2.31/lib/bundler/cli.rb:31:in `dispatch'

from /Users/cec/.gem/ruby/2.7.4/gems/bundler-2.2.31/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'

from /Users/cec/.gem/ruby/2.7.4/gems/bundler-2.2.31/lib/bundler/cli.rb:25:in `start'

from /Users/cec/.gem/ruby/2.7.4/gems/bundler-2.2.31/exe/bundle:49:in `block in <top (required)>'

from /Users/cec/.gem/ruby/2.7.4/gems/bundler-2.2.31/lib/bundler/friendly_errors.rb:103:in `with_friendly_errors'

from /Users/cec/.gem/ruby/2.7.4/gems/bundler-2.2.31/exe/bundle:37:in `<top (required)>'

from /usr/local/bin/bundle:23:in `load'

from /usr/local/bin/bundle:23:in `<main>'

/Users/cec/.gem/ruby/2.7.4/gems/google-protobuf-3.23.2-x86_64-darwin/lib/google/protobuf.rb:49:in `require': dlopen(/Users/cec/.gem/ruby/2.7.4/gems/google-protobuf-3.23.2-x86_64-darwin/lib/google/2.6/protobuf_c.bundle, 0x0009): tried: '/Users/cec/.gem/ruby/2.7.4/gems/google-protobuf-3.23.2-x86_64-darwin/lib/google/2.6/protobuf_c.bundle' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/cec/.gem/ruby/2.7.4/gems/google-protobuf-3.23.2-x86_64-darwin/lib/google/2.6/protobuf_c.bundle' (no such file), '/Users/cec/.gem/ruby/2.7.4/gems/google-protobuf-3.23.2-x86_64-darwin/lib/google/2.6/protobuf_c.bundle' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')) - /Users/cec/.gem/ruby/2.7.4/gems/google-protobuf-3.23.2-x86_64-darwin/lib/google/2.6/protobuf_c.bundle (LoadError)

from /Users/cec/.gem/ruby/2.7.4/gems/google-protobuf-3.23.2-x86_64-darwin/lib/google/protobuf.rb:49:in `<top (required)>'

from /Users/cec/.gem/ruby/2.7.4/gems/sass-embedded-1.58.3-arm64-darwin/ext/sass/embedded_sass_pb.rb:4:in `require'

from /Users/cec/.gem/ruby/2.7.4/gems/sass-embedded-1.58.3-arm64-darwin/ext/sass/embedded_sass_pb.rb:4:in `<top (required)>'

from /Users/cec/.gem/ruby/2.7.4/gems/sass-embedded-1.58.3-arm64-darwin/lib/sass/embedded.rb:4:in `require_relative'

from /Users/cec/.gem/ruby/2.7.4/gems/sass-embedded-1.58.3-arm64-darwin/lib/sass/embedded.rb:4:in `<top (required)>'

from /Users/cec/.gem/ruby/2.7.4/gems/sass-embedded-1.58.3-arm64-darwin/lib/sass-embedded.rb:4:in `require_relative'

from /Users/cec/.gem/ruby/2.7.4/gems/sass-embedded-1.58.3-arm64-darwin/lib/sass-embedded.rb:4:in `<top (required)>'

from /Users/cec/.gem/ruby/2.7.4/gems/jekyll-sass-converter-3.0.0/lib/jekyll/converters/scss.rb:8:in `require'

from /Users/cec/.gem/ruby/2.7.4/gems/jekyll-sass-converter-3.0.0/lib/jekyll/converters/scss.rb:8:in `<top (required)>'

from /Users/cec/.gem/ruby/2.7.4/gems/jekyll-sass-converter-3.0.0/lib/jekyll-sass-converter.rb:4:in `require'

from /Users/cec/.gem/ruby/2.7.4/gems/jekyll-sass-converter-3.0.0/lib/jekyll-sass-converter.rb:4:in `<top (required)>'

from /Users/cec/.gem/ruby/2.7.4/gems/jekyll-4.3.2/lib/jekyll.rb:195:in `require'

from /Users/cec/.gem/ruby/2.7.4/gems/jekyll-4.3.2/lib/jekyll.rb:195:in `<top (required)>'

from /Users/cec/.gem/ruby/2.7.4/gems/jekyll-4.3.2/exe/jekyll:8:in `require'

from /Users/cec/.gem/ruby/2.7.4/gems/jekyll-4.3.2/exe/jekyll:8:in `<top (required)>'

from /Users/cec/.gem/ruby/2.7.4/bin/jekyll:23:in `load'

from /Users/cec/.gem/ruby/2.7.4/bin/jekyll:23:in `<top (required)>'

from /Users/cec/.gem/ruby/2.7.4/gems/bundler-2.2.31/lib/bundler/cli/exec.rb:58:in `load'

from /Users/cec/.gem/ruby/2.7.4/gems/bundler-2.2.31/lib/bundler/cli/exec.rb:58:in `kernel_load'

from /Users/cec/.gem/ruby/2.7.4/gems/bundler-2.2.31/lib/bundler/cli/exec.rb:23:in `run'

from /Users/cec/.gem/ruby/2.7.4/gems/bundler-2.2.31/lib/bundler/cli.rb:478:in `exec'

from /Users/cec/.gem/ruby/2.7.4/gems/bundler-2.2.31/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'

from /Users/cec/.gem/ruby/2.7.4/gems/bundler-2.2.31/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'

from /Users/cec/.gem/ruby/2.7.4/gems/bundler-2.2.31/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'

from /Users/cec/.gem/ruby/2.7.4/gems/bundler-2.2.31/lib/bundler/cli.rb:31:in `dispatch'

from /Users/cec/.gem/ruby/2.7.4/gems/bundler-2.2.31/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'

from /Users/cec/.gem/ruby/2.7.4/gems/bundler-2.2.31/lib/bundler/cli.rb:25:in `start'

from /Users/cec/.gem/ruby/2.7.4/gems/bundler-2.2.31/exe/bundle:49:in `block in <top (required)>'

from /Users/cec/.gem/ruby/2.7.4/gems/bundler-2.2.31/lib/bundler/friendly_errors.rb:103:in `with_friendly_errors'

from /Users/cec/.gem/ruby/2.7.4/gems/bundler-2.2.31/exe/bundle:37:in `<top (required)>'

from /usr/local/bin/bundle:23:in `load'

from /usr/local/bin/bundle:23:in `<main>'