Rvm: Installation of Ruby v2.4.1 halted. How can I install Ruby successfully?

Created on 30 Sep 2017  路  1Comment  路  Source: rvm/rvm

Description


Fairly new to using RVM and Ruby. While trying to install Ruby v2.4.1 with RVM v1.29.3 on macOS Sierra v10.12.6, installation keeps halting with a message

Error running '__rvm_make install', please read /Users/edwardchoi/.rvm/log/1506727204_ruby-2.4.1/install.log There has been an error while running make install. Halting the installation.

Steps to reproduce

  1. I installed RVM with homebrew
  2. Ran rvm install 2.4.1 in my terminal
  3. Edwards-MacBook-Pro:~ edwardchoi$ 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/[email protected]/cert.pem' is already up to date. Requirements installation successful. Installing Ruby from source to: /Users/edwardchoi/.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/edwardchoi/.rvm/src/ruby-2.4.1...- ruby-2.4.1 - #applying patch /Users/edwardchoi/.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/edwardchoi/.rvm/log/1506726334_ruby-2.4.1/install.log There has been an error while running make install. Halting the installation.

Expected behavior


I expected Ruby v2.4.1 to be installed without any issues.

Actual behavior

install.log

https://gist.github.com/choi2016/2379fa0a9c29627d488e8ae067098c15

Environment info


```ruby-2.1.4:

system:
uname: "Darwin Edwards-MacBook-Pro.local 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64"
name: "OSX"
version: "10.12"
architecture: "x86_64"
bash: "/bin/bash => GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin16)"
zsh: "/bin/zsh => zsh 5.2 (x86_64-apple-darwin16.0)"
remote_path: "osx/10.12/x86_64"

rvm:
version: "1.29.3 (master)"
updated: "1 hour 42 minutes 51 seconds ago"
path: "/Users/edwardchoi/.rvm"
autolibs: "[homebrew] Allow RVM to use package manager if found, install missing dependencies, install package manager (only OS X)."

ruby:
interpreter: "ruby"
version: "2.1.4p265"
date: "2014-10-27"
platform: "x86_64-darwin14.0"
patchlevel: "2014-10-27 revision 48166"
full_version: "ruby 2.1.4p265 (2014-10-27 revision 48166) [x86_64-darwin14.0]"

homes:
gem: "/Users/edwardchoi/.rvm/gems/ruby-2.1.4"
ruby: "/Users/edwardchoi/.rvm/rubies/ruby-2.1.4"

binaries:
ruby: "/Users/edwardchoi/.rvm/rubies/ruby-2.1.4/bin/ruby"
irb: "/Users/edwardchoi/.rvm/rubies/ruby-2.1.4/bin/irb"
gem: "/Users/edwardchoi/.rvm/rubies/ruby-2.1.4/bin/gem"
rake: "/Users/edwardchoi/.rvm/rubies/ruby-2.1.4/bin/rake"

environment:
PATH: "/Users/edwardchoi/.rvm/gems/ruby-2.1.4/bin:/Users/edwardchoi/.rvm/gems/ruby-2.1.4@global/bin:/Users/edwardchoi/.rvm/rubies/ruby-2.1.4/bin:/Users/edwardchoi/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
GEM_HOME: "/Users/edwardchoi/.rvm/gems/ruby-2.1.4"
GEM_PATH: "/Users/edwardchoi/.rvm/gems/ruby-2.1.4:/Users/edwardchoi/.rvm/gems/ruby-2.1.4@global"
MY_RUBY_HOME: "/Users/edwardchoi/.rvm/rubies/ruby-2.1.4"
IRBRC: "/Users/edwardchoi/.rvm/rubies/ruby-2.1.4/.irbrc"
RUBYOPT: ""
gemset: ""```

Most helpful comment

turns out that I needed to execute 'xcode-select --install' before installing Ruby. That fixed my issue

>All comments

turns out that I needed to execute 'xcode-select --install' before installing Ruby. That fixed my issue

Was this page helpful?
0 / 5 - 0 ratings