Fail to install 3.0.5 on M1 Mac 12.3.1: psych #2101
-
I am not totally certain if I've succesfully installed earlier versions of 3.0.x on this machine with ruby-build or not. But I can't currently install 3.0.5. Is it expected that should be able to install on an M1 Mac with homebrew, using ruby-build, without custom configuration for library locations and such? Or is custom configuration for library locations expected to be needed? Here is my output:
Later:
Things that seem weird to me:
I do have libyaml installed, with homebrew.
But maybe the ruby compilation step can't find it? Do I need to supply custom build configuration? Is it expected that I would need to? In the past I have installed ruby's with Thanks for any advice! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 7 replies
-
Thanks for reporting! I'm sorry you're having troubles.
I expect it to work. Otherwise, ruby-build is broken. However, when people encounter build failures due to edge-cases (or hard-to-debug scenarios) specific to their particular environment, we often suggest passing custom configuration flags to help the build to succeed.
You can try: brew install [email protected] libyaml
RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix [email protected]) --disable-install-doc" ruby-build 3.0.5 ~/.rubies/ruby-3.0.5 Explanation:
|
Beta Was this translation helpful? Give feedback.
-
Hello! I have tried this very same commands and I have not been able to make my local setup work. I'm seeing the very same error @jrochkind experienced before he could fix his installation. All the versions are the same actually, I can install up to ruby 3.0.3 but not 3.0.4 nor 3.0.5. |
Beta Was this translation helpful? Give feedback.
-
I can confirm that this issue is occurring with Ruby 3.2.1 on macOS Monterey where libyaml is installed with Homebrew. Specifically I ran Here's the relevant section from the build log:
Are there any other bits of information I can provide to help? |
Beta Was this translation helpful? Give feedback.
-
This tutorial https://velog.io/@inhalin/warning-It-seems-your-ruby-installation-is-missing-psych-for-YAML-output by @inhalin helped me to solve the pysch error when installing ruby 3.2.1 |
Beta Was this translation helpful? Give feedback.
-
On the other hand, I encountered another weird issue with The build log says this:
p.s. I was manually setting |
Beta Was this translation helpful? Give feedback.
Thanks for reporting! I'm sorry you're having troubles.
I expect it to work. Otherwise, ruby-build is broken. However, when people encounter build failures due to edge-cases (or hard-to-debug scenarios) specific to their particular environment, we often suggest passing custom configuration flags to help the build to succeed.
You c…