-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing Ruby 2.6 on macOS 12.6 Fails #301
Comments
I get exactly the same error, on macOS 12.6 , Pro M1. Thank you for posting the issue. |
solved it with reinstall command line tool 13.4, thanks for your help |
For me, it hasn't worked. I installed ruby version 2.7.6 |
A coworker pointed me towards this change, specifically the use of I don't know whether this information is likely to help resolve the underlying issue but thought it couldn't hurt to share nevertheless. In my case the instructions above did work — in particular, simply installing Xcode 13 was not sufficient, the linked build flags in point 7 are also required. (Previously I'd tried the build flags but used Xcode 14, which was of course unsuccessful, so I wanted to test a build on Xcode 13 without those flags to understand their impact.) |
Thank for this report @edmangimelli. I am trying to go through this on an M1 Pro running Ventura 13.0.1 in order that I can successfully install Ruby 2.6.1 which I need for an old project. Having deleted downloaded the xcode-select 14 that I had on my system and downloaded xcode 13.6 I now have my OS telling me; 'The version of Xcode installed on this Mac is not compatible with macOS Ventura. Download the latest version for free from the App Store.', any ideas how I can over ride this, or whether there's a better fix to this Ruby 2.6 compile issue than this Xcode old version workaround? |
It's worked on my M1 Air macOS Ventura 13.0.1. I installed ruby version 2.6.3 |
@leminh0796 would you mind sharing the steps you followed to install using a rosetta terminal? |
I confirmed this issue on a 3 monterey M1 computers about 3 weeks ago. Solution was to force install of the older 13.x xcode manually, versus installing xcode via the cli per the original bug. This isn't really an asdf issue per se (I saw it with 2 rbenv users, and 1 rvm user) but I am grateful for this post because we eventually stumbled across it via googling for the error message so thank you for sharing. edit: no rosetta terminal needed. we installed it normally |
|
@leminh0796 thanks! @jaydorsey Can confirm I also got it working without rosetta. I initially misread step 4 as installing XCode CLT v13.x which no longer works on Ventura. Manually unpacking Xcode 13 however and using These are the steps I followed for Ventura:
|
Thank you, @lokulin |
for rbenv users do this
|
I just spent 4h trying pretty much everything on the internet, your solution is the only one that worked for me! Thank you so much @lokulin !! |
Running this worked for me in Ventura (13.2):
|
A workaround I found is the following:
I added more context in this stackoverflow post. I wonder if it would be worth documenting out of band installs on the readme for scenarios like this? It's fairly edge case, but I suspect a number of folks will continue to run into this over the next year or two, and not everyone will have the option to "just upgrade". |
The command from @lokulin's instructions worked for me (on macOS Sonoma 14.3 with xcode CL tools 15.1) without having to download an older Xcode or switch CL tools:
|
Alternate title: Installing Ruby 2.6, when Xcode 14 is Installed, Fails
(If you're having problems with Ruby 2.7 or Ruby 3, you might try these env variables)
Updated to macOS 12.6 and Ruby 2.6.5, 2.6.6, 2.6.9, and 2.6.10 no longer install.
Someone's gonna find a better solution (thank you in advance!), but this works for now:
sudo rm -rf /Library/Developer/CommandLineTools
In a terminal tab,
sudo xcode-select --switch "$HOME/Downloads/Xcode.app"
(but replace that path with the correct one for you)What kinds of errors was I seeing:
The text was updated successfully, but these errors were encountered: