错误 运行 '__rvm_make 安装',

Error running '__rvm_make install',

我尝试将 ruby 更新到 2.2.4 或 2.2.3 时出现错误。 我在 Osx El Capiton

Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.11/x86_64/ruby-2.3.0.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/shishirsapkota/.rvm/rubies/ruby-2.3.0, this may take a while depending on your cpu(s)...
ruby-2.3.0 - #downloading ruby-2.3.0, this may take a while depending on your connection...
ruby-2.3.0 - #extracting ruby-2.3.0 to /Users/shishirsapkota/.rvm/src/ruby-2.3.0 - please wait
ruby-2.3.0 - #configuring - please wait
ruby-2.3.0 - #post-configuration - please wait
ruby-2.3.0 - #compiling - please wait
ruby-2.3.0 - #installing - please wait
Error running '__rvm_make install',
showing last 15 lines of /Users/shishirsapkota/.rvm/log/1454687438_ruby-2.3.0/install.log
    from ./tool/rbinstall.rb:686:in `block in <class:Installer>'
    from ./tool/rbinstall.rb:754:in `block (2 levels) in <main>'
    from /Users/shishirsapkota/.rvm/src/ruby-2.3.0/lib/rubygems/specification.rb:821:in `block in each_spec'
    from /Users/shishirsapkota/.rvm/src/ruby-2.3.0/lib/rubygems/specification.rb:743:in `block (2 levels) in each_gemspec'
    from /Users/shishirsapkota/.rvm/src/ruby-2.3.0/lib/rubygems/specification.rb:742:in `each'
    from /Users/shishirsapkota/.rvm/src/ruby-2.3.0/lib/rubygems/specification.rb:742:in `block in each_gemspec'
    from /Users/shishirsapkota/.rvm/src/ruby-2.3.0/lib/rubygems/specification.rb:741:in `each'
    from /Users/shishirsapkota/.rvm/src/ruby-2.3.0/lib/rubygems/specification.rb:741:in `each_gemspec'
    from /Users/shishirsapkota/.rvm/src/ruby-2.3.0/lib/rubygems/specification.rb:819:in `each_spec'
    from ./tool/rbinstall.rb:751:in `block in <main>'
    from ./tool/rbinstall.rb:801:in `block in <main>'
    from ./tool/rbinstall.rb:798:in `each'
    from ./tool/rbinstall.rb:798:in `<main>'
make: *** [do-install-nodoc] Error 1
+__rvm_make:0> return 2
There has been an error while running make install. Halting the installation.

然后我尝试了 rvm get headrvm install ruby-2.3.0 但我仍然得到相同的 error.I找了一整天,没找到解决方法。

如果有人遇到这个错误,我删除了 .rvm 文件夹, 然后我删除 ruby 和 "which ruby" 给出的目录中的 Updata_rubygems 文件夹。 我用稳定 ruby 重新安装 rvm 并将 ruby 更新为 2.2.4 我工作完美。

你有xcode命令行工具吗?尝试安装 xcode。 xcode-select --install