BUILD FAILED (macOS 14.5 on arm64 using ruby-build 20240530.1) #2404
-
Hi: I am attempting to install ruby 3.2.4 or even 3.3.2 using RUBY_CONFIGURE_OPTS=--with-libyamal-dir=/opt/local rbenv install 3.2.4 The build fails with 'Following extensions are not compiled psych:' In the file .../ruby-3.2.4/ext/psych/mkmf.log I get... package configuration for yaml-0.1 is not found I have installed rbenv and ruby-build with macports and am installing a ruby without sudo on an unprivileged account. I tried to install yaml with macports but that installs libyaml @0.2.5_0 I am running MacBook M3 chip and 14.5 os Sonoma At https://trac.macports.org/ticket/69604 I see a comment 'It looks like rbenv is installing its own private copy of openssl first. If rbenv's intention is to be self-contained, then I guess it should either be installing its own private copy of libyaml or else telling ruby not to use libyaml, if that's possible. These would be bugs to report to the developers of rbenv. Or if they are not intending to be self-contained, then hopefully they have documentation explaining how to inform rbenv about the location of your copy of libyaml and anything else that's needed.' So my question, how to I get rbenv to use the installed libyaml 0.2.5_0 instead of yaml-0.1 which it appears to be looking for? Or, what else should I do to be able to install a ruby with rbenv on this Mac using macports installation of rbenv and installing a ruby as a non privileged user? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
This looks almost correct, except that I see a small misspelling: it should be
This comment is correct in the fact that ruby-build can install a private copy of openssl, but it doesn't do that to be self-contained. It does that only on systems where it can't detect a suitable existing installation of openssl, which is most commonly macOS with its broken system OpenSSL/LibreSSL. Other external dependencies like libyaml or readline are typically optional, but a Ruby installation without openssl is unusable because it cannot connect to the Internet or install any gems. rbenv/ruby-build doesn't have a way to be told not to use a system libyaml, but note that ruby-build will only pass a default Lines 674 to 676 in 076d1a2 In other cases, unless you pass |
Beta Was this translation helpful? Give feedback.
-
@mislav Hi, I have a build failing here with the same command. I have also attach the info of the build.
|
Beta Was this translation helpful? Give feedback.
This looks almost correct, except that I see a small misspelling: it should be
--with-libyaml-dir
.This comment is correct in the fact that ruby-build can install a private copy of openssl, but it doesn't do that to be self-contained. It does that only on systems where it can't detect a suitable existing installation of openssl, which is most commonly macOS with i…