ruby-install icon indicating copy to clipboard operation
ruby-install copied to clipboard

--no-install-deps causes an error from Homebrew and a configure warning

Open monfresh opened this issue 3 months ago • 1 comments

Description

When using the --no-install-deps option and with Homebrew as the package manager, openssl_version here is nil, which results in this error and warning in the terminal:

Error: No available formula with the name "openssl@". Did you mean openssl@3, openssh, openslp, opensaml, opensc, opencsg, openfst, openmsx or open-sp?
configure: WARNING: you should use --build, --host, --target

Luckily, this does not prevent Ruby from installing successfully, but it would still be nice to fix this.

Steps To Reproduce

Steps to reproduce the bug:

  1. Install ruby-install via Homebrew on macOS Sequoia 15.6.1
  2. $ ruby-install --no-install-deps 3.4.5 (or any version you don't already have installed)

Expected Behavior

No errors or warning appear during the configuration step.

Actual Behavior

The following error and warning appear:

Error: No available formula with the name "openssl@". Did you mean openssl@3, openssh, openslp, opensaml, opensc, opencsg, openfst, openmsx or open-sp?
configure: WARNING: you should use --build, --host, --target

Environment

$ ruby-install --version
   ruby-install: 0.10.1
$ uname -a
Darwin 24.6.0 arm64
$ cc --version
Apple clang version 17.0.0 (clang-1700.0.13.5)
Target: arm64-apple-darwin24.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
$ openssl version
OpenSSL 3.5.2 5 Aug 2025 (Library: OpenSSL 3.5.2 5 Aug 2025)

monfresh avatar Sep 15 '25 17:09 monfresh

Ah, we need to load dependencies.sh even if --no-install-deps is given. I've created a branch with a possible fix: d2eca2f1bd562845016b1aa10af38ff8f5553d7c

postmodern avatar Sep 16 '25 01:09 postmodern