Build error for Ruby 2.6.3 on macOS Catalina #1846
Replies: 4 comments
-
Hi, other than readline, ruby-build will not actually use any dependencies from Homebrew. You need to opt into them explicitly: RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix [email protected]) --with-libyaml-dir=$(brew --prefix libyaml)" ruby-build ... However, linking to Homebrew's libyaml shouldn't be strictly necessary, since the system one would do just fine. I'm not sure what went wrong with your build. Perhaps there is more information in full log output? |
Beta Was this translation helpful? Give feedback.
-
Thanks for responding. I added the options to the command, but it still resulted in the same error: Output of ruby-build with configure options for openssl and libyaml
Looking at the build log, it seems that Output of `grep -n yaml` from the build log
I'm confused by the warning message saying that I think I may be experiencing a related, but slightly separate issue here, of passed I've attached the full build log here: ruby-build.20200323183455.63736.log I don't see anything obvious (past the missing extension messages, and the warning about |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm seeing the same problem on a different Ruby version:
The full log is here: https://gist.github.com/kagarmoe/88a01e92769445e398da306d26ad52e8 Could this be a |
Beta Was this translation helpful? Give feedback.
-
For some cases it seems to be problem with Xcode command tools updates, so removing the command tools and re-installing them worked for me like this: hint taked from here: |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm unable to successfully install Ruby 2.6.3 on macOS Catalina, having un-installed and re-installed all of its dependencies from Homebrew (
libyaml
,zlib
,openssl
, etc.):Output of `ruby-build 2.6.3 /usr/local/opt/ruby-2.6.3`
Last 30 lines of the build log file
Output of `sw_vers` (macOS version information)
Output of `brew info libyaml` (Homebrew-installed libyaml information)
Output of `brew info zlib` (Homebrew-installed zlib information)
Looking at the script, it seems that there is a
needs_yaml
/use_homebrew_yaml
set of functions defined (needs_yaml
calling intouse_homebrew_yaml
), however there is no caller forneeds_yaml
. I notice that there is a similaruse_homebrew_readline
, but it does get actually used here.Is this intentional? I'm unsure how to interpret this situation. I've also tried manually calling
use_homebrew_yaml
in a modified version ofruby-build
, and even though I see the log line it prints, the build fails with the same error I included at the top of this report.Does anyone have any insights to this behavior? Would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions