greW greW - 3 years ago 271
Ruby Question

"error while running make install" when trying to install ruby via rvm

I'm using macOS and I'm trying to install ruby 2.4.1 via rvm. here is a log from my console

RETINA15M14:folder moi$ rvm install 2.4.1
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.12/x86_64/ruby-2.4.1.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Certificates bundle '/usr/local/etc/openssl@1.1/cert.pem' is already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/moi/.rvm/rubies/ruby-2.4.1, this may take a while depending on your cpu(s)...
ruby-2.4.1 - #downloading ruby-2.4.1, this may take a while depending on your connection...
ruby-2.4.1 - #extracting ruby-2.4.1 to /Users/moi/.rvm/src/ruby-2.4.1....
ruby-2.4.1 - #applying patch /Users/moi/.rvm/patches/ruby/2.4.1/random_c_using_NR_prefix.patch.
ruby-2.4.1 - #configuring..................................................................
ruby-2.4.1 - #post-configuration.
ruby-2.4.1 - #compiling...............................................................
ruby-2.4.1 - #installing.....
Error running '__rvm_make install',
please read /Users/moi/.rvm/log/1506928428_ruby-2.4.1/install.log
There has been an error while running make install. Halting the installation.


and here is what in the log https://pastebin.com/Lh3V0s2P , I'm not sure what to do next I tried every option I found I could find and nothing helped. please tell me what whats wrong and how can it be solved.

Answer Source

Try running the following before installing ruby.

xcode-select --install

Refer here.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download