-
Notifications
You must be signed in to change notification settings - Fork 134
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
macOS Monterey: fails to install a lower Ruby version #255
Comments
I moved this to the asdf-ruby issue tracker because this is not an issue with asdf core. Please provide the output from |
Here is the output from
I'm using Oh My Zsh terminal.
|
@belgoros I'm not sure what is going on. I do see that you have rbenv on your path before asdf, so you might try commenting out this line in your zshrc and see if that fixes it:
|
@Stratus3D Thank you for your feedback. Unfortunately, it didn't fix the error. |
Same issue but with rbenv, maybe this command can help u for something
|
works with asdf, too.
|
Here's a fix for this issue: https://stackoverflow.com/questions/69012676/install-older-ruby-versions-on-a-m1-macbook |
|
Works for asdf as well |
Not sure if it's related, but I'm on macOS Ventura 13.4.1 with an Intel processor, and here's what worked for me and allowed me to install both newer and older Ruby versions with
In
Then:
Hope that's useful to someone! |
@claudiorivera You don't need to overwrite the brew link, you just need add OSSL 1 to the package config path ( But OP's problem here is different... they are trying to install a ruby version below 2.7 on an M1 mac, but the first ruby version with support for those processors was 2.7. You can hack at getting versions below 2.7 to install on an M1 machine by passing it That said, suppressing errors long enough to force a square peg into a round hole by getting an old ruby version to reach the end of the install sequence without exiting is likely to have some wonky side effects, both with Ruby and with old gems in your project's dependencies that don't support your machine's architecture. If you truly need to develop with a ruby version that has been EOL for over a year at this point, your time would be better spent dockerizing the application. IMO this should be closed; it's not a bug, it's just an unsupportable use case to expect asdf to install an EOL version of ruby on processor architecture that did not exist at the time that version of ruby was released. |
Describe the Bug
I could install 3 different versions of Ruby without problems:
But when trying to install a lower one (
2.6.5
), it raised the error:Used asdf version:
version: v0.9.0
Steps to Reproduce
run
asdf install ruby 2.6.5
Expected Behaviour
Have ruby 2.6.5 installed
Actual Behaviour
1 warning generated.
linking shared-object psych.bundle
422 warnings generated.
linking shared-object date_core.bundle
make: *** [build-ext] Error 2
Environment
macOS version: Monterey, `12.3`
asdf plugins affected (if relevant)
Ruby
The text was updated successfully, but these errors were encountered: