Reputation: 45
I'm trying to install ruby 2.6.6 on a mac running osx 13.0.1. I've tried rbenv and RVM both of which I've tried uninstalling and reinstalling and keep getting the same errors.
With rbenv this is the error message -
BUILD FAILED (macOS 13.0.1 using ruby-build 20221225)
Inspect or clean up the working tree at /var/folders/tm/hhn058ks2kl_3rhmf8z4bds80000gn/T/ruby-build.20230111165419.37628.MFqlgm
Results logged to /var/folders/tm/hhn058ks2kl_3rhmf8z4bds80000gn/T/ruby-build.20230111165419.37628.log
Last 10 log lines:
transform_mjit_header: SKIPPED to transform __inline_isinff
transform_mjit_header: SKIPPED to transform __inline_isfinitel
transform_mjit_header: SKIPPED to transform __inline_isfinited
transform_mjit_header: SKIPPED to transform __inline_isfinitef
transform_mjit_header: SKIPPED to transform __darwin_fd_clr
transform_mjit_header: SKIPPED to transform __darwin_fd_set
transform_mjit_header: SKIPPED to transform __darwin_fd_isset
transform_mjit_header: SKIPPED to transform __darwin_check_fd_set
transform_mjit_header: SKIPPED to transform __sputc
ln -sf ../../../.ext/include/x86_64-darwin22/rb_mjit_min_header-2.6.6.h include/ruby-2.6.0/x86_64-darwin22/rb_mjit_min_header-2.6.6.h
Using RVM the error message is this
Error running '__rvm_make -j6',
please read /Users/gid/.rvm/log/1673456334_ruby-2.6.6/make.log
There has been an error while running make. Halting the installation.
The last lines of the log are the same as the rbenv log apart from the final line which is
+__rvm_make:0> return 2
Has anyone else come across this issue? Any help much appreciated.
Upvotes: 1
Views: 1011
Reputation: 422
Passing RUBY_CFLAGS="-w" worked for me on MacOS Ventura M2.
Example:
RUBY_CFLAGS="-w" rbenv install 2.4.0
Upvotes: 0