-
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
Ruby 2.6.5 fails to compile on MacOS Big Sur #184
Comments
Not sure. I don't know that asdf-ruby or ruby-build (which it asdf-ruby uses) have gotten much use on Big Sur yet. |
Currently, the asdf-ruby plugin references an old ruby-build tag (which uses an old openssl version; we need openssl-111i rbenv/ruby-build@bad7a7c). I had to manually update the tag to be able to install Ruby on Apple M1: .asdf/plugins/ruby master ✗
▶ git diff
diff --git a/lib/utils.sh b/lib/utils.sh
index 43c4409..ab81fab 100644
--- a/lib/utils.sh
+++ b/lib/utils.sh
@@ -1,4 +1,5 @@
-RUBY_BUILD_VERSION="${ASDF_RUBY_BUILD_VERSION:-v20201208}"
+# RUBY_BUILD_VERSION="${ASDF_RUBY_BUILD_VERSION:-v20201208}"
+RUBY_BUILD_VERSION="${ASDF_RUBY_BUILD_VERSION:-v20201210}" With that, installing Ruby should work now: ▶ asdf list ruby
2.7.2
▶ which ruby
/Users/sohooo/.asdf/shims/ruby
▶ ruby -v
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [arm64-darwin20] |
I ran into a problem installing ruby 2.6.6 (not 2.6.5) on Big Sur / 2020 MacBook Air (M1 / apple silicon). I tried every which way with openssl to no avail. Found this comment in
Here's what I did:
(fish shell version)
if that doesn't work, let me know --I tried a bunch of things before I got there |
What things did you try before this? I presume I need one of those preceding steps. I am still failing. Big Sur (not M1) ruby 2.6.5 |
sorry, these notes are a little rough: installing asdfinstalling coreutils(a dependency of asdf) (i already have curl and git)
installing asdf
can't remember where this came from:
adding to .asdfrc
installing Ruby 2.6.6 with asdf (FAILED)
installing Ruby 3.0.0 with asdf (SUCCESS)
installing Ruby 2.7.2 with asdf (HANGS)
installing Ruby 2.7.1 with asdf (FAILED)
trying a comment from rbenv issues (FAILED)trying this rbenv/ruby-build#1691 (comment)
^^^ also failed let's try rbenv instead, first removing installing rbenv
installing Ruby 2.6.6 with rbenv (FAILED)
also failed ^^^
installing Ruby 2.6.6 with asdf - Round 2 (FAILED)following this: rbenv/ruby-build#1691 (comment) installed xcode command line tools
^^ failed installing Ruby 2.6.6 with asdf - Round 3 (SUCCESS!!!)
from rbenv/ruby-build#1699 (comment)
converted to fish:
adding to .asdfrc
|
@edmangimelli you're the best. That was helpful. Who keeps notes like that??
I did not set all those flags this time around but I did try that earlier before all the |
Took me a long day to try the different suggestions, could get ruby 2.6.5, 2.6.7, 3.0.1 compiled, with both asdf and rbenv. But.... Still looking for a way to run rails server or console, all the rubies bring me the same ffi errors: Found a comment of a guy saying: but this doesn't work, raising an error For those who could successfully compile rubies, could you actually run rails with them ? |
I'm not seeing this exact error, but I had a similar chain of issues (Ruby wouldn't install; fixed by overriding library path but then FFI didn't work). What worked for me is |
This solution didn't work on |
Not supported on Ruby 2.6 reached the end of life in |
I assume you are using the M1 chip on your machine. I've wrote a SO post about this that might help you get it running https://stackoverflow.com/questions/69012676/install-older-ruby-versions-on-a-m1-macbook/69012677#69012677 |
So I'm trying to figure out how to solve this same problem in OS Ventura and clearly something has changed in the last couple of years with regards to where Homebrew is now located. It is no longer in /opt/Homebrew |
I finally solved my situation with:
I'm using an Intel mac. |
This also worked for me to install |
After update to Big Sur, the ruby 2.6.5 won't compile.
asdf install ruby 2.6.5
returns the following output:Those are last lines from compilation log:
The same issue occurs with ruby 2.7.2, and ruby 2.6.5 installed via
rvm
The text was updated successfully, but these errors were encountered: