macOS 14.5 installation fails with "Following extensions are not compiled: openssl"

Steps taken:

  1. Cloned repo
  2. Added repo bin/ path to $PATH
  3. Download and installed asdf
  4. Reloaded .zshrc
  5. Added asdf plugins (asdf plugin add ruby gitleak)
  6. Ran asdf install && bundle install && brew bundle install --no-lock --no-upgrade

Outcome 😿

❯ asdf install && bundle install && brew bundle install --no-lock --no-upgrade
* Downloading gitleaks release 8.18.2...
gitleaks 8.18.2 installation was successful!
Downloading ruby-build...
==> Downloading ruby-3.2.3.tar.gz...
-> curl -q -fL -o ruby-3.2.3.tar.gz https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.3.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 19.6M  100 19.6M    0     0  13.2M      0  0:00:01  0:00:01 --:--:-- 13.2M
==> Installing ruby-3.2.3...
ruby-build: using libyaml from homebrew
ruby-build: using gmp from homebrew
-> ./configure "--prefix=$HOME/.asdf/installs/ruby/3.2.3" --enable-shared --with-libyaml-dir=/opt/homebrew/opt/libyaml --with-gmp-dir=/opt/homebrew/opt/gmp --with-ext=openssl,psych,+ --with-openssl-dir=/usr/local/opt/openssl@1.1 --with-readline-dir=/usr/local/opt/readline
-> make -j 10
*** Following extensions are not compiled:
openssl:
	Could not be configured. It will not be installed.
	/private/var/folders/zq/m_cv7jzj48b1bd326ygbsqyr0000gn/T/ruby-build.20240711205325.59597.JAVm08/ruby-3.2.3/ext/openssl/extconf.rb:101: OpenSSL library could not be found. You might want to use --with-openssl-dir=<dir> option to specify the prefix where OpenSSL is installed.
	Check /var/folders/zq/m_cv7jzj48b1bd326ygbsqyr0000gn/T/ruby-build.20240711205325.59597.JAVm08/ruby-3.2.3/ext/openssl/mkmf.log for more details.

BUILD FAILED (macOS 14.5 on arm64 using ruby-build 20240709.1)

You can inspect the build directory at /var/folders/zq/m_cv7jzj48b1bd326ygbsqyr0000gn/T/ruby-build.20240711205325.59597.JAVm08
See the full build log at /var/folders/zq/m_cv7jzj48b1bd326ygbsqyr0000gn/T/ruby-build.20240711205325.59597.log
Edited Jul 12, 2024 by Niklas Janz
Assignee Loading
Time tracking Loading