-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
MAC M1 Big Sur ruby compile issue for all rubies. Error running '__rvm_make -j8', #5033
Comments
I had the same issue due to openssl. Download : https://github.com/openssl/openssl/releases/tag/OpenSSL_1_0_2u $> tar -xzf openssl-OpenSSL_1_0_2u.tar.gz
$> cd openssl-1.0.2u
$> ./Configure darwin64-x86_64-cc --prefix=/usr/local/opt/[email protected]
$> make
$> make test
$> sudo make install
$> rvm install 2.3.8 --with-openssl-dir=/usr/local/opt/[email protected] You will maybe need to run: $> rvm osx-ssl-certs update all |
@GuillaumeCisco After your solution i just run Thanks |
I will try to add this as default behaviour of RVM |
@GuillaumeCisco
|
I am trying to install ruby 2.5.5 and getting the same error. I tried @GuillaumeCisco 's solution but still showing the same error |
I have the same issue for 2.2.1 :/ |
@GuillaumeCisco @divnoorkang Can you guys provide the content of |
After following the steps added by @GuillaumeCisco I have got the below error. Apple M1 arch And If I follow steps given by anuj-bluebash then getting compilation error. Please find make.log However, |
hi, tried all variants but still have this error mac os 11.2 |
tried it, openssl has been installed succesfully, but it still can't install ruby 2.6.3 |
After following the steps added by @GuillaumeCisco I have got the below error. (Apple M1 using rosseta terminal)
Here is make.log file content:
Hope we can get some answers :) |
Using rbenv and doing steps from (rbenv/ruby-build#1691 (comment)) Fixed my problem |
The solutions above did not work on my case. |
Apple M1: I just spent hours trying to figure out what's wrong and I finally wrapped my head around it. You don't need to use an old version of SSL you just need to install your rubies with a rosetta terminal (find terminal in your applications folder, right click, get info, click "Open using Rosetta", close your terminal and reopen if you have to). after doing that you can just install any rubies you want with
This can get confusing if you've tried all the stuff above like I did. You might end up with several different versions of openssl with things in your bash or zshrc path and whatnot messing everything up. You can uninstall uneeded old versions by checking out what you have with |
I didn't try SSL 1.0. I'd prefer to use current stable software, but the other ideas for rvm did not work on my M1 Mac trying to install ruby 2.6.6. All attempts result in the same error. Looks like I'll need to use rbenv.
|
I had similar issues. I tried all the possible steps to fix the compilation issues but it was not until I updated xcode on MacOS Big Sur that it succeeded. |
I installed Xcode and it worked for me too! No more rvm errors. |
@steady-daddy and @MissyDyan what exactly did you do after installing xcode? |
For users on Mac (I am on 11.2) with M1, Big Sur (this is what I did - what I needed for my school): then run validation in the terminal to see what failed: Then can install in the terminal (I had to install 2.6.1, try replacing 2.6.1 with 2.3.4 to see if it works for you): I had to reinstall (these failed for me): For other failed items: Hope it helps. |
Thank you for your reply @MissyDyan . |
Rosetta? |
this worked for me. it actually failed during compilation so i had to add |
For people trying to install older versions of Ruby (< 2.3) on arm64, this might help! |
|
None of the above worked for me. And This finally worked for me. |
Hello everyone! I had the same issue with ruby 2.6.6 and the solution that worked for me was: run and then: run I tried it with Sometimes we need to reinstall Log:
|
Follow this I was able to install rvm 2.5.1.
However, I still have one legacy application with ruby 1.8.7. I am running with MacOS monterey with Apple M1. It didn't work for me and it seems not even be able to complete configuration:
I checked the log here: /Users/joshlin/.rvm/log/1645128030_ruby-1.8.7-p374/configure.log
It looks like it is not able to run /bin/sh ./config.sub because of the ARM chip? Any help will be really appreciated!
|
Hi, Facing same issue, On macOS Monterey 12.2
|
Works for Ruby 3.0.3, on MacOS Monterrey (Silicon M1) Thaks U |
I'm having the same issue in Monterey on the M1 Chip (Mac ARM64).
File content for
I actually do need tcl/tk. If you think I should open a new Issue for this, please let me know. Perhaps, I should reinstall with Rosetta because tcl/tk might not be compatible with ARM64 processors yet. I'd rather not though. |
On macOS Monterey 12.1 next solution worked for me:
For gems installation with native extensions, when
|
Thanks for putting this. Just install everything using Rosetta from scratch, for older rubies. |
It works in my case for Ruby 3.1.2, on MacOS Ventura (Silicon M1) Thanks! |
arch -x86_64 rvm install 2.3.0 --with-openssl-dir=/opt/homebrew/opt/[email protected] worked with me |
Below worked for me.
|
uninstall homebrew and reinstall again fix it to me. Now i can install my ruby in rvm just like "rvm install 2.7.1" |
Worked for me with ruby-3.1.4 on Mac OS
|
try running from |
thnx it worked for me |
I have a Macbook Pro and Air with M1 chip. |
This worked for me as well on M1 Max Ventura 13.2 while installing ruby 2.7.5 |
Similar to previous answers above, the only way that worked for me was like this: # most likely you need to install the openssl
# brew install [email protected]
rvm install 3.3.0 --with-openssl-dir=$(brew --prefix)/opt/openssl@3 |
also the only way it worked for me (Mac Air M1, Ventura 13.2.1). Installed Ruby 3.1.0 with Homebrew 4.2.11 :) |
This worked for me:
|
Thank you! I was going mad trying to install Ruby 2.3.4 on my M1 macbook. The Use Rosetta trick seemed to work straight away. |
This worked for me as well. For some reason when I did the exact command except with [email protected] instead of 3 it failed. Also failed when using -j param, rosetta, and other solutions provided here. Sidenote: I tried installing 3.1.4 using the openssl@3 method above and that failed. Also failed with [email protected]... verified that I have both versions properly installed; not sure what was going on. |
$rvm -v
rvm 1.29.11 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
Description
$rvm install 2.3.0
`ruby-2.3.0 - #configuring - please wait
ruby-2.3.0 - #post-configuration - please wait
ruby-2.3.0 - #compiling - please wait
Error running '__rvm_make -j8',
please read /Users/sheriff/.rvm/log/1610613964_ruby-2.3.0/make.log
I have tried for almost all version and it goes failed on compile step.
The text was updated successfully, but these errors were encountered: