-
Notifications
You must be signed in to change notification settings - Fork 132
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
Failed to install ruby 3.2.2 on M2 Pro with macOS Ventura 13.3 #344
Comments
I'm seeing |
@theblang that's unrelated, it just means your ruby-build is not to date yet. Run |
You can also use the newer-than-latest-release of ruby-build with (from README):
|
Even after running above I do not get ruby 3.2.2 listed when I run |
@uxgnod I had the same issue (M1, macOS 13.3.1). I was able to resolve by installing |
@etewiah It sounds like the command
|
@uxgnod and @xcolour I had a similar issue with build and psych (Intel MBP 2019, macOS 13.4) and was able to resolve it by installing Same as you @xcolour, I did not need any of the custom build options. |
@pboling , sorry only saw your comment after I fixed it. Your tip was indeed correct. Many thanks! |
@Stratus3D I think this can be closed. |
@pboling Sorry I forgot to reply and update the status of this issue earlier. The way you mentioned can indeed solve the problem, and I agree that the issue has been resolved and I will close this. |
I would be nice to have a solution without the need of installing Can't this be fixed on the asdf/ruby side? |
I have libyaml installed and it's not working again. Downloading ruby-build... To follow progress, use 'tail -f /var/folders/_2/89qhh6gj0lgfyd8bfrhhb7yw0000gq/T/ruby-build.20231009132436.87244.log' or pass --verbose Downloading openssl-3.1.3.tar.gz... Installing openssl-3.1.3... Installed openssl-3.1.3 to /Users/piyush.chandana/.asdf/installs/ruby/3.2.1 Downloading ruby-3.2.1.tar.gz... -> https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.1.tar.gz Installing ruby-3.2.1... ruby-build: using readline from homebrew ruby-build: using libyaml from homebrew ruby-build: using gmp from homebrew BUILD FAILED (macOS 13.6 using ruby-build 20230919) Inspect or clean up the working tree at /var/folders/_2/89qhh6gj0lgfyd8bfrhhb7yw0000gq/T/ruby-build.20231009132436.87244.mX7Gm4 Results logged to /var/folders/_2/89qhh6gj0lgfyd8bfrhhb7yw0000gq/T/ruby-build.20231009132436.87244.log Last 10 log lines: /usr/local/include/secure/_string.h:106:5: warning: '__IPHONE_OS_VERSION_MIN_REQUIRED' is not defined, evaluates to 0 [-Wundef] #if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000 || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 || \
217 warnings generated. 195 warnings generated. 217 warnings generated. 195 warnings generated. 195 warnings generated. 196 warnings generated. 195 warnings generated. |
I was able to fix my similarly broken ruby install by deleting the system installed gems located in |
Why is this issue closed ? Installing libyaml from homebrew seems like a temporary workaround, since defeats the purpose of using asdf as being "one tool" only to manage these. For example, we're using asdf in our CI jobs to automatically pull tools on several machines/agents that the builds are running. Now we would need to manually install homebrew, and then install libyaml on all agents and future agents that we might add. Can't this be fixed by updating the install script ? |
@pletoss The fix for many people is simply to use the latest build of ruby-build, which is done with:
No need to do anything with libyaml there. |
Thanks for the tip. Tried that, however while it works on macos build machines, it still fails on linux:
|
It failed generating documentation. If you don't need it (such as on a non-development environment), you can turn off the documentation part of the build. This issue is a little confusing, from typos, and I am not sure of the current state of the defaults and switches - but it can be done. |
You need to install |
What works for me: ruby 3 versions ruby older versions |
Awesome, was stuck on this for a while, this worked: brew uninstall --ignore-dependencies openssl@3
ASDF_RUBY_BUILD_VERSION=master asdf install ruby 2.7.5 |
Install ruby 3.2.2 with
asdf install ruby 3.2.2
failed with following logsI tried this answer #328 (comment) but not working.
The text was updated successfully, but these errors were encountered: