Closed jspawar closed 9 months ago
I have exact same issues, Does any one knowwhat happen? and what should we do?
Can this be reproduced by compiling ruby-3.0.0 manually?
wget https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.0.tar.xz
tar -xJvf ruby-3.0.0.tar.xz
cd ruby-3.0.0
./configure --with-opt-dir="$(brew --prefix openssl):$(brew --prefix readline):$(brew --prefix libyaml):$(brew --prefix gdbm)"
make
If so, this may be an upstream incompatibility bug.
Had the same "Compiling ruby failed" issued. Turns out it is because the ruby installation does not work with openssl3.
Solution
You can also get the path to the install openssl as follow
I can reliably reproduce a failure to install 3.0.0
. But installing 3.2.0
works fine. Seeing as everyone in this issue was installing the latest version (ruby-install ruby
), this should only affect the small subset of people who specifically need 3.0.0
for some reason.
if you are doing this from rbenv:
RUBY_CONFIGURE_OPTS="--with-openssl-dir=/opt/homebrew/openssl@1.1" rbenv install 2.6.7
I have recently added some logic to dynamically install the openssl@1.1
or openssl@3
homebrew package depending on the version of Ruby. See a37e332e055da91db5fb053a3d94ebb0f219043d This will be released shortly in ruby-install 0.9.3.
Also, ruby-install 0.9.3 now specifies --with-openssl-dir
instead of just
--with-opt-dir
, which apparently Ruby's configure
script treats with more
precedence, and should prevent it from using another detected instance of
openssl on the system.
However, this comes with a few caveats:
-- --with-openssl-dir=/path/to/openssl@1.1
themselves.Comment or reopen this issue if you still have issues with ruby-install
0.9.3.
Hello friends,
I keep getting segfaults when trying to install Ruby 3 via
ruby-install ruby
(orruby-install ruby --latest
) with the following output (cropped of course):For whatever it's worth, here's some info about my environment:
Am I missing some requirements or do I have incompatible versions of dependencies? (Would be surprised by the latter since that implies the Homebrew formula for Ruby doesn't actually/correctly list or fetch the dependencies it needs)
Thanks y'all