Closed shigeya closed 5 months ago
I forgot to mention that both of the systems with openssl@3 installed.
Thanks for the report. I'm looking at this line of output, which shows the configure
invocation made by ruby-build:
-> ./configure "--prefix=$HOME/.rbenv/versions/3.3.1" --enable-shared --with-libyaml-dir=/opt/homebrew/opt/libyaml --with-gmp-dir=/opt/homebrew/opt/gmp --with-ext=openssl,psych,+ --with-openssl-dir=/opt/homebrew/opt/openssl@1.1
I see --with-openssl-dir
being passed, but if you said that the system had no openssl@1.1 at the time, then my main guess is that you might have had RUBY_CONFIGURE_OPTS environment variable with this flag in it. Many people set this environment variable globally in their shell initialization files but then forget about it.
Since recently, ruby-build is much better at detecting openssl versions installed on the system, particularly those from Homebrew, so manual intervention by explicitly setting --with-openssl-dir
via environment variables or other means isn't necessary in most cases anymore.
Ha! You're right. My apologies. It was staying in my shell configuration two years ago. Let me close this issue.
Again, thanks for the help!
Steps to reproduce the behavior
With ruby-build 20240530.1
then,
or
Expected vs. actual behavior
I installed 3.3.2 with rbenv on one of my Macs, and it worked, but when I built 3.3.2 on another Mac, it failed. The logs showed that it was due to OpenSSL library directory, so I checked the differences and found that the Mac that succeeded had openssl@.1.1, while the one that failed did not.
In the one that failed, I successfully built 3.3.1 with ruby-build in the past and was using it. This time, when I uninstalled 3.3.1 and rebuilt it, it failed exactly the same way, so the cause seems to be somewhere in the build system.
Both environments are MacOS Sonoma latest M1.
Note: As a workaround, installing openssl@1.1 allows building 3.3.1/3.3.2 on the same machine.
I should provide PR, but I don't have time, so this is just a bug repo. Thank you for all your effort on ruby-build.
Logs