Errors installing couchbase gem

When I try to install the couchbase gem:

gem install couchbase

I get the following error messages:

Ignoring json-2.6.1 because its extensions are not built. Try: gem pristine json --version 2.6.1
Ignoring nio4r-2.5.8 because its extensions are not built. Try: gem pristine nio4r --version 2.5.8
Ignoring websocket-driver-0.7.5 because its extensions are not built. Try: gem pristine websocket-driver --version 0.7.5
ERROR: Loading command: install (LoadError)
dlopen(/Users/rickcasey/.rbenv/versions/2.5.0/lib/ruby/2.5.0/x86_64-darwin17/openssl.bundle, 0x0009): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /Users/rickcasey/.rbenv/versions/2.5.0/lib/ruby/2.5.0/x86_64-darwin17/openssl.bundle
Reason: tried: ‘/usr/local/opt/openssl/lib/libssl.1.0.0.dylib’ (no such file), ‘/usr/local/lib/libssl.1.0.0.dylib’ (no such file), ‘/usr/lib/libssl.1.0.0.dylib’ (no such file), ‘/usr/local/Cellar/openssl@3/3.0.2/lib/libssl.1.0.0.dylib’ (no such file), ‘/usr/local/lib/libssl.1.0.0.dylib’ (no such file), ‘/usr/lib/libssl.1.0.0.dylib’ (no such file) - /Users/rickcasey/.rbenv/versions/2.5.0/lib/ruby/2.5.0/x86_64-darwin17/openssl.bundle
ERROR: While executing gem … (NoMethodError)
undefined method `invoke_with_build_args’ for nil:NilClass

I am running on:

  • a Mac with OS Montery (12.3.1)
  • Ruby 2.5 (in this directory; have other versions managed with rbenv)
  • Couchbase Server 7.0.7, build 7031 (no buckets yet)
  • used Homebrew to install libcouchbase 3.2.4
  • want to use this with a Rails project

I’ve exhausted the other messages on this board related to this error, to no avail…any help appreciated!

–rick