rbenv install 3.1.5
is failed on MacOS 14.4.1
#2379
-
Machine details:Apple M1 Pro Error:BUILD FAILED (macOS 14.4.1 on arm64 using ruby-build 20240501) Steps taken to reproduce error:
Steps taken to resolve error:
I am trying to install ruby 3.1.5 using rbenv but it is failing with the error message as in the file below;
Tried to find something similar in the discussions but specific version case is not found. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
Hi, sorry you're having trouble. I see nothing wrong with your setup. What does The To check for more information about the failure, these lines of the log file you shared might be a good starting point:
|
Beta Was this translation helpful? Give feedback.
-
I found this bug report: https://bugs.ruby-lang.org/issues/19920 It looks like this happens on a macOS system where SIP (system integrity protection) is disabled. By default, SIP is enabled on macOS. A workaround might be: |
Beta Was this translation helpful? Give feedback.
-
==> Installed ruby-3.1.5 to /Users/yapabandara/.rbenv/versions/3.1.5 NOTE: to activate this Ruby version as the new default, run: rbenv global 3.1.5 yapabandara@YAPABANDARAs-MacBook-Air ~ % gem install ffi cocoapods ERROR: While executing gem ... (Gem::FilePermissionError) |
Beta Was this translation helpful? Give feedback.
I found this bug report: https://bugs.ruby-lang.org/issues/19920
It looks like this happens on a macOS system where SIP (system integrity protection) is disabled. By default, SIP is enabled on macOS.
A workaround might be:
rbenv install 3.1.5 -- --disable-shared
, since it's building the shared library on a SIP-disabled system that triggers the bug.