MacOS AppleSillicon (M2) build of ruby 3.2.1 runs in error #2305
-
Oh boy I ran into a rabit hole.. I managed to build ruby via
but it refuses to install. The output is:
The error message is kind of misleading because in the folder there is a working ruby executable.
The error message with
and without
I assume that somehow the extensions are not compiled and therefore the build cannot succeed. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Could you try That installs Command Line Tools on macOS, which is a prerequisite to building almost any kind of software. |
Beta Was this translation helpful? Give feedback.
Okay! I fixed my system. For whatever reason xcode-select was not configured to use the default path. By running
sudo xcode-select -r
(for reset to system default). I could restore the normal behavior.The error occurred because the system could not link the extensions/binary properly.
RDocs are now generated as well.
Thanks for hinting me in the right direction. (Also suggesting
xcode-select -r
besidesxcode-select install
may help others in future)