Apple Intel macOS Ventura 13.0.1: unable to install ruby 2.6.9 #2090
-
Steps to reproduce the behaviour
Every time I install 2.6.9 I get FYI: 3.1.0 installed successfully Expected
Actual behaviorLogsFull log file: https://gist.github.com/Zandelok/844e89b7c964a751c504867745b694ef |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 26 replies
-
Not sure why this failed, but please note that the version you're trying to compile is ancient (in relative terms) and your operating system is very new. You might encounter incompatibilities and should upgrade Ruby in your app to at least v3.0. You could try building 2.6.10 with |
Beta Was this translation helpful? Give feedback.
-
I have the same issue and found this thread. But nothing helps me. |
Beta Was this translation helpful? Give feedback.
-
Reinstalling the Xcode helped me (remove it and install last version from App Store) |
Beta Was this translation helpful? Give feedback.
-
EDIT: The answer given is correct for Intel Macs, which is the scope of this Issue/Thread. This fix will not work for M1 Macs whether running natively or under Rosetta. Leaving original post below unedited for context of future readers. The answer given is incorrect. Ruby <2.7.7 cannot be built on OSX Ventura due to incompatibilities with the xcode libraries in xcode 14.0. The initial bugs are reported here https://bugs.ruby-lang.org/issues/18912 and here https://bugs.ruby-lang.org/issues/19005 This is also a problem in the latest version of Monterey (12.6), as it will automatically install xcode 14. In OSX Monterey, it is possible to downgrade to an earlier version of the xcode command line tools, but in Ventura you're stuck with 14.0+. This issue affected many versions of Ruby when xcode 14 was released, for instance ruby 2.7.6 and earlier versions of 2.7 will also not build on Ventura. This issue was fixed and backported to all supported Ruby versions: For instance here is the backport for 2.7 that was released in 2.7.7: ruby/ruby@0525a1e Since ruby 2.6 is EOL, the fix was not backported to 2.6 and it remains, to the best of my knowledge, not possible to build it (without changes to ruby) on Ventura. If you want to throw money at the problem, apparently ruby-on-mac (rom) has a fix for it (likely either by forking ruby 2.6.10 and backporting the 2.7.7 fix themselves, or by distributing a pre-built binary). See article here: https://www.rubyonmac.dev/how-to-install-ruby-2-6-on-macos-13-ventura To be clear the issue is with BUILDING ruby not RUNNING ruby. If you |
Beta Was this translation helpful? Give feedback.
-
Thanks @SampsonCrowley, this is what I found over the weekend too. We're on M1's and we were unable to resolve this whether running under Rosetta or natively. Last night, I upgraded my personal mac which is an Intel to Ventura, and reinstalled XCode and that resolved the issue just as @Zandelok suggests. Apologies to @Zandelok for misunderstanding the scope of the fix and suggesting it didn't work. It works just fine - for Intel macs, which is the scope of this thread. |
Beta Was this translation helpful? Give feedback.
Reinstalling the Xcode helped me (remove it and install last version from App Store)