相关文章推荐

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

Whenever I tried to install Ruby with RVM it creates an issue.

ruby-2.7.4 - #compiling.............................................................................................................................................................................................................................................................................
Error running '__rvm_make -j12',
please read /Users/h_iqbal/.rvm/log/1691057288_ruby-2.7.4/make.log

There has been an error while running make. Halting the installation.

It's not even specific with 2.7.4, I tried with every other stable version as well but failed

I tried to use this command

rvm reinstall 3.2.0 --with-openssl-dir=$(brew --prefix openssl) --with-readline-dir=$(brew --prefix readline) --with-libyaml-dir=$(brew --prefix libyaml) --disable-dtrace --disable-docs

It works for 3.2.0 version but unfortunately not for other versions like 3.0.0

shafy, cccCody, Zyzle, rrrodrigo, Eddiegooo, jbsempe, ddzy, shimaamarzouk, BrunnaSilva, gabeodess-sana, and 120 more reacted with thumbs up emoji shafy, Zyzle, jbsempe, gabeodess-sana, stuyam, yinghuiwang, Bozazitz, jonathan-amaris, JazaelRivas-CBQA, amoludage, and 41 more reacted with hooray emoji jonathan-amaris, JazaelRivas-CBQA, amoludage, 0xmtn, amed-salazar-skydropx, aaronkelton, HariesJS, tzanarde, tuanngocptn, Anshu-Raj-5c, and 27 more reacted with heart emoji binemugha, JazaelRivas-CBQA, Kasmanaft, mikhael28, 0xmtn, amed-salazar-skydropx, aaronkelton, tzanarde, tuanngocptn, rsandipermana, and 24 more reacted with rocket emoji All reactions

I meet the same problem while installing Ruby 3.2.2 but only (I believe) on a Mac M1 (ARM chip).

Are you also using M1/M2 chips?

I figured out how to solve this on my side: the default RVM ruby was jruby 9.3.8.0 . Moving to ruby-3.0.4 then installing ruby-3.2.2 worked out fine. I figured this out thanks to the logs which mentioned:

current path: /home/worker/.rvm/src/ruby-3.2.2
GEM_PATH=/home/worker/.rvm/gems/jruby-9.3.8.0:/home/worker/.rvm/gems/jruby-9.3.8.0@global
GEM_HOME=/home/worker/.rvm/gems/jruby-9.3.8.0

Unsure if this is the culprit, but in case this helps someone else 😄

I tried to use this command

rvm reinstall 3.2.0 --with-openssl-dir=$(brew --prefix openssl) --with-readline-dir=$(brew --prefix readline) --with-libyaml-dir=$(brew --prefix libyaml) --disable-dtrace --disable-docs

It works for 3.2.0 version but unfortunately not for other versions like 3.0.0

works fine with version 3.2.2 too on apple silicon

I tried to use this command

rvm reinstall 3.2.0 --with-openssl-dir=$(brew --prefix openssl) --with-readline-dir=$(brew --prefix readline) --with-libyaml-dir=$(brew --prefix libyaml) --disable-dtrace --disable-docs

It works for 3.2.0 version but unfortunately not for other versions like 3.0.0

Work fine with version 3.2.2 too on macOS Monterey MacBook Pro m1 👍

I tried to use this command我尝试使用这个命令

rvm reinstall 3.2.0 --with-openssl-dir=$(brew --prefix openssl) --with-readline-dir=$(brew --prefix readline) --with-libyaml-dir=$(brew --prefix libyaml) --disable-dtrace --disable-docsrvm重新安装3.2.0 --with-openssl-dir=$(brew --prefix openssl) --with-readline-dir=$(brew --prefix readline) --with-libyaml-dir=$(brew --前缀 libyaml) --disable-dtrace --disable-docs

It works for 3.2.0 version but unfortunately not for other versions like 3.0.0它适用于 3.2.0 版本,但不幸的是不适用于 3.0.0 等其他版本

thans , it is very good!

on macos (Sonoma 14.1.2) with M1, this command works:
rvm install 3.1.4 --with-openssl-dir=$(brew --prefix openssl)
(I use brew for dependency management, if you use something else then replace the openssl dir accordingly)

aibarito-ua, Alxzu, eddbot, Rajath3, nelsonmfinda, abid-2362, atoulmet, dian-kaagman, wivern-co-uk, RudyOnRails, and 5 more reacted with thumbs up emoji G-Ro-Man, atoulmet, and crabbits reacted with heart emoji All reactions

On macos (Sonoma 14.1.2) with M1 - to install ruby 2.6.10, i had to remove openssl@3
brew uninstall --ignore-dependencies openssl@3
and then run the following command:
RUBY_CONFIGURE_OPTS=--with-openssl-dir=/opt/homebrew/etc/[email protected] rvm install 2.6.10

I tried to use this command

rvm reinstall 3.2.0 --with-openssl-dir=$(brew --prefix openssl) --with-readline-dir=$(brew --prefix readline) --with-libyaml-dir=$(brew --prefix libyaml) --disable-dtrace --disable-docs

It works for 3.2.0 version but unfortunately not for other versions like 3.0.0

Thank you :) This was the only fix that worked after hours of googling

I tried to use this command

rvm reinstall 3.2.0 --with-openssl-dir=$(brew --prefix openssl) --with-readline-dir=$(brew --prefix readline) --with-libyaml-dir=$(brew --prefix libyaml) --disable-dtrace --disable-docs

It works for 3.2.0 version but unfortunately not for other versions like 3.0.0

Worked for me on MacBook Air M2 Sonoma 14.2.
Using RVM with ruby 3.2.2.

RUBY_CONFIGURE_OPTS=--with-openssl-dir=/opt/homebrew/etc/[email protected] rvm install 2.6.10

This worked for me to install 3.0.1

RUBY_CONFIGURE_OPTS=--with-openssl-dir=/opt/homebrew/etc/openssl@1.1 rvm install 3.0.1

I tried to use this command

rvm reinstall 3.2.0 --with-openssl-dir=$(brew --prefix openssl) --with-readline-dir=$(brew --prefix readline) --with-libyaml-dir=$(brew --prefix libyaml) --disable-dtrace --disable-docs

It works for 3.2.0 version but unfortunately not for other versions like 3.0.0

Only running this worked for me!

rvm reinstall 3.2.2 --with-openssl-dir=$(brew --prefix openssl)

I'm in an Apple M1 Pro.

On macos (Sonoma 14.1.2) with M1 - to install ruby 2.6.10, i had to remove openssl@3 brew uninstall --ignore-dependencies openssl@3 and then run the following command: RUBY_CONFIGURE_OPTS=--with-openssl-dir=/opt/homebrew/etc/[email protected] rvm install 2.6.10

The only option that worked for versions lower than 3.0 (M2 air Sanoma 14.1.2), thanks!

on macos (Sonoma 14.1.2) with M1, this command works: rvm install 3.1.4 --with-openssl-dir=$(brew --prefix openssl) (I use brew for dependency management, if you use something else then replace the openssl dir accordingly)

rvm install 3.3.0 --with-openssl-dir=$(brew --prefix openssl) works on macOS Intel chip

Air M1, Big Sur 11.6
The only solution for me was to run the following command using the default terminal
rvm install 3.3.0 --autolibs=disable

rvm reinstall 3.2.0 --with-openssl-dir=$(brew --prefix openssl) --with-readline-dir=$(brew --prefix readline) --with-libyaml-dir=$(brew --prefix libyaml) --disable-dtrace --disable-docs

Thank You also worked for me

I tried to use this command

rvm reinstall 3.2.0 --with-openssl-dir=$(brew --prefix openssl) --with-readline-dir=$(brew --prefix readline) --with-libyaml-dir=$(brew --prefix libyaml) --disable-dtrace --disable-docs

It works for 3.2.0 version but unfortunately not for other versions like 3.0.0

Works for 3.2.3 on m3 mac

I'm facing the same issue when installing ruby-2.6.3 I've tried using rvm install 2.6.3 --with-openssl-dir=$(brew --prefix [email protected]) and still return the error Error running '__rvm_make -j8'. But it works for ruby 3.0.3 & 3.1.0.
Anyone has a solution for ruby 2.x.x version?
I'm using mac M2 with macOS Sonoma 14.3.1

@muhammadyana Try it with Ruby 2.6.10. There is rarely a good reason to use a Ruby version where the patch version (the 3rd digit) is not the latest one. In the Ruby 2.6.x series, the latest version is 2.6.10. This is a very important concept to understand when working with Ruby.

This is especially true on Apple Silicon (like your M2 Mac), where versions older than 2.6.8 are not supported out of the box.

Here's a detailed guide I wrote that explains how and why to upgrade the Ruby version in your project, including a step-by-step guide at the end.

On macos (Sonoma 14.1.2) with M1 - to install ruby 2.6.10, i had to remove openssl@3 brew uninstall --ignore-dependencies openssl@3 and then run the following command: RUBY_CONFIGURE_OPTS=--with-openssl-dir=/opt/homebrew/etc/[email protected] rvm install 2.6.10

The only option that worked for versions lower than 3.0 (M2 air Sanoma 14.1.2), thanks!

this worked for me for installing 2.7.3 & 3.0.4 (on m1 pro)

rvm reinstall 3.2.0 --with-openssl-dir=$(brew --prefix openssl) --with-readline-dir=$(brew --prefix readline) --with-libyaml-dir=$(brew --prefix libyaml) --disable-dtrace --disable-docs

Works for 3.3.0 version, for M1/M2 Mac with __rvm_make -j10 error

The below works great on Ruby 3.3.0 on M1:

rvm install 3.3.0 --with-openssl-dir=$(brew --prefix openssl)

Works fine for m3 pro

The below works great on Ruby 3.3.0 on M1:

rvm install 3.3.0 --with-openssl-dir=$(brew --prefix openssl)

This worked for 3.3.1 in M2

it helps me to install ruby: My global ruby version was 2.6.10, i changed it with rbenv

rbenv install 3.0.3
rbenv global 3.0.3
rvm implode (to remove rvm)
rvm install ruby-3.0.3 --with-openssl-dir=$(brew --prefix [email protected])

(mac os M1)

 
推荐文章