Faild to build Ruby "cannot compute sizeof (size_t)" on M1 MacOS 12.1 #1872
Replies: 4 comments 1 reply
-
Also struggling with this (for ruby 3.0.2) - wondering if anyone has a solution? |
Beta Was this translation helpful? Give feedback.
-
I am having this issue with this on M1x macbook on monterey, reinstalling xcode-select doesn't help and using brew gcc, libffi, or openssl doesn't help too. It's pretty frustrating at this point because I can't really downgrade. Hopefully someone can help |
Beta Was this translation helpful? Give feedback.
-
I have this issue rn. LOGS:
BUILD FAILED (macOS 12.3.1 using ruby-build 20220426) Inspect or clean up the working tree at /var/folders/s6/sbwnsgtn6jd2l711mpq_hlr40000gn/T/ruby-build.20220428123510.10449.KS7FzM Last 10 log lines: |
Beta Was this translation helpful? Give feedback.
-
Encountered a similar issue, tried to use the system bundled clang and it works then (I was using homebrew's llvm) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Help me, please!
Machine
Version
Problem
I ran
rbenv uninstall 2.7.4
to install readline, then ranbrew install readline
andrbenv install 2.7.4
.Then the following error occurred.
Tried
xcode-select
.$ brew install openssl readline
.export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@3)”
to~/.zshrc
.eval "$(rbenv init - zsh)"
to~/.zshrc
.I tried running
rbenv install 2.7.4
again, but the same error occurred.Log
Beta Was this translation helpful? Give feedback.
All reactions