macOS 14.5 installation fails with "Following extensions are not compiled: openssl"
Steps taken:
- Cloned repo
- Added repo
bin/path to$PATH - Download and installed
asdf - Reloaded
.zshrc - Added
asdfplugins (asdf plugin add ruby gitleak) - 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 by Niklas Janz