3.0.0-preview2 install failed (Mac OS X 10.15.7 using ruby-build 20201210) #2016
Replies: 15 comments
-
Similarly, I can't get 3.0.0-preview2 or 3.0.0-dev to build on Mojave with similar-ish errors...
Similar build failures were posted to the Ruby bug tracker for Ruby 2.6.2: https://bugs.ruby-lang.org/issues/15726 3.0.0-preview1, 2.7.1 and 2.7.2 build fine, however.
|
Beta Was this translation helpful? Give feedback.
-
As a follow up to my comment above, I've created a ticket in the Ruby issue tracker along with a fix for the bigdecimal issue. See here for details: https://bugs.ruby-lang.org/issues/17486 Basically, reverting the following commit will allow builds to run successfully on darwin again: |
Beta Was this translation helpful? Give feedback.
-
@naro143 I get the same error (Segmentation fault: 11) when installing ruby 3.0.0. Did you solve it? |
Beta Was this translation helpful? Give feedback.
-
@v3rmin I don't know how to solve this problem. ruby 3.0.0. has the same problem. |
Beta Was this translation helpful? Give feedback.
-
Hi, all. Can you try with the following instructions?
I think your developer toolchain is broken by macOS or Xcode upgrade installation. |
Beta Was this translation helpful? Give feedback.
-
@hsbt Thank you! |
Beta Was this translation helpful? Give feedback.
-
@hsbt |
Beta Was this translation helpful? Give feedback.
-
@hsbt This does not resolve the issue. I did what you asked on a Catalina Macbook Pro and the issue is still present. Applying the patch revert I mentioned does however work. I also have access to a Big Sur Macbook Pro that I can try with once the upgrade is done. |
Beta Was this translation helpful? Give feedback.
-
I couldn't reproduce it. ruby-build is working fine with my Catalina and Big Sur environment. |
Beta Was this translation helpful? Give feedback.
-
This also happens when building from source directly from a fresh git clone so it's not an issue with ruby-build per se, but with Ruby itself it seems. As to why you are unable to reproduce, I'm not sure, but I've had the issue now on Mojave, Catalina, and I will soon check on Big Sur. I've posted to the Ruby bug tracker so we can perhaps follow the progress there to see if anyone else has a similar issue. I can say with certainty that reverting patch in question definitely resolves the issue for me at least on the v3_0_0 tag and on master, but as to why I'm experiencing it specifically is a different matter. |
Beta Was this translation helpful? Give feedback.
-
The bug report on bugs.ruby-lang.org is here: |
Beta Was this translation helpful? Give feedback.
-
Hey! I have the same issue with Catalina and reinstalling command line tools didnt help. Any ideas how to fix it and install ruby? |
Beta Was this translation helpful? Give feedback.
-
I was having this same issue installing ruby
|
Beta Was this translation helpful? Give feedback.
-
This advice was perfect, and still relevant for ruby |
Beta Was this translation helpful? Give feedback.
-
@asgeo1 This patch worked for me on my Apple Silicon M1 with Monterey 12.5 installing Ruby 3.1.2 via Homebrew and rbenv. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
$ rbenv install 3.0.0-preview2
Downloading openssl-1.1.1i.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/e8be6a35fe41d10603c3cc635e93289ed00bf34b79671a3a4de64fcee00d5242
Installing openssl-1.1.1i...
Installed openssl-1.1.1i to /Users/naro143/.rbenv/versions/3.0.0-preview2
Downloading ruby-3.0.0-preview2.tar.gz...
-> https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.0-preview2.tar.gz
Installing ruby-3.0.0-preview2...
ruby-build: using readline from homebrew
BUILD FAILED (Mac OS X 10.15.7 using ruby-build 20201210)
Inspect or clean up the working tree at /var/folders/q7/xvn3h3gn2t18rdxx2n7grd_0wzqfmf/T/ruby-build.20201213040353.36221.Nqoey4
Results logged to /var/folders/q7/xvn3h3gn2t18rdxx2n7grd_0wzqfmf/T/ruby-build.20201213040353.36221.log
Last 10 log lines:
compiling enc/unicode.c
compiling enc/utf_8.c
compiling enc/trans/newline.c
./revision.h unchanged
compiling version.c
linking miniruby
generating x86_64-darwin19-fake.rb
x86_64-darwin19-fake.rb updated
make: *** [exe/ruby] Segmentation fault: 11
make: *** Deleting file `exe/ruby'
zsh: exit 1
$ xcodebuild -version
Xcode 11.1
Build version 11A1027
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.15.7
BuildVersion: 19H2
3.0.0-preview1 install succeeds, but 3.0.0-preview2 install does not.
Beta Was this translation helpful? Give feedback.
All reactions