0

I'm trying to update ruby in mac yosemite because I wan't install jekyll but I can't do it. I found this thread and I followed the steps mentioned in the best answer but it doesn't work, when I run rvm install ruby-2.4.1 I take this error:

Requirements installation failed with status: 2.

osx: Yosemite 10.10.5
rvm: rvm 1.29.3
ruby: 2.0.0p481

p.s. I also tried the solution mentioned in that topic but it didn't work either and I can't reply (no enough reputation points)

1 Answers1

0

Try to disable the gatekeeper run in terminal:

sudo spctl --master-disable

aunch System Preferences and go to “Security & Privacy” and the “General” tab You will now see the “Anywhere” option under ‘Allow apps downloaded from:’ Gatekeeper options. Enable it and try again

  • thanks for answer, "anywhere" option is already selected, but it doesn't work. When I run `rvm install ruby-2.4.1` I get this error: Requirements installation failed with status: 1. , and when I run `rvm install ruby-2.4.1` as sudo I get: Requirements installation failed with status: 2. –  Sep 18 '17 at 23:50
  • and the root user is also enabled? You first have to run the Directory Utility. Then go to the Edit menu and select "Enable Root User". You will be asked for the root password twice. You are done! – Marco Doll Sep 19 '17 at 00:05
  • done but, should I log in as root and repeat all steps? In what directory? –  Sep 19 '17 at 00:32
  • yes, you can simply type root at the login prompt and enter the root password. try the same directory – Marco Doll Sep 19 '17 at 00:43
  • ok last thing is to disable the sip. boot while holding cmd +r and run terminal csrutil disable; reboot and try again, now sip is diabled you can simple reboot to enable again – Marco Doll Sep 19 '17 at 01:46
  • I was wrong, I should had installed homebrew before. Now I can install most recent version of ruby. sorry and thanks for answer : ) –  Sep 19 '17 at 02:24